Re: [NTLK] IP number on Newton

From: Victor Rehorst (victor_at_newtontalk.net)
Date: Tue Feb 22 2005 - 06:52:05 PST


Robert Benschop wrote:
> On 21-feb-05, at 20:40, Victor Rehorst wrote:
>
>>I wrote a two-line DashBoard script that shows the currently connected
>>IP.
>
>
> Hm, that will probably work with Gesture Launch as well...
>
> Will you share the script with us or were you just building up
> suspense? ;-)

I wanted to export it or package it up with PackMan, but I don't have time for
the former and I don't have the latter, so I'll just type it out.

----------- Cut here -------------

local ip := "Current IP: " &
        GetGlobals().|INetManagerFSM:NIE|.fLinkEntry.localAddress[0] & "." &
        GetGlobals().|INetManagerFSM:NIE|.fLinkEntry.localAddress[1] & "." &
        GetGlobals().|INetManagerFSM:NIE|.fLinkEntry.localAddress[2] & "." &
        GetGlobals().|INetManagerFSM:NIE|.fLinkEntry.localAddress[3];

ModalConfirm(ip, ["OK, Thanks"]);

----------- Cut here -------------

-- 
Victor Rehorst - victor_at_newtontalk.net - chuma_at_chuma.org
NewtonTalk list administrator - http://www.newtontalk.net
Will the last person to leave the platform please turn off the backlight?
-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
Official Newton FAQ: http://www.chuma.org/newton/faq/
WikiWikiNewt for all kinds of articles: http://tools.unna.org/wikiwikinewt/


This archive was generated by hypermail 2.1.5 : Tue Feb 22 2005 - 07:30:01 PST