Re: [NTLK] programming question

From: Paul Guyot (pguyot_at_kallisys.net)
Date: Mon Nov 19 2001 - 01:08:16 EST


>I wonder, how can one make a certain script to be performed on the start up
>?

The easiest way is to create a package with the work done in the
InstallScript method. This method is executed during packages
activation.

You might also want register your handler to have the work done once
the login screen has been passed (either once a correct password has
been entered or just directly if there is no password). You need
RegLogin to do that (in your InstallScript) and UnRegLogin (in your
RemoveScript). In that case, ensure that the package is on the
internal store.

Or you can do as Daniel suggested, i.e. use RegPowerOn/UnRegPowerOn.
Your code will be called every time you'll wake your Newton from
sleeping (but not after boot).

Or you may want to combine these things.

Paul

-- 
Home page: http://www.kallisys.com/
Newton-powered WebServer: http://newt.dyndns.org:8080/

-- This is the Newtontalk mailinglist - http://www.newtontalk.net To unsubscribe or manage: visit the above link or mailto:newtontalk-request_at_newtontalk.net?Subject=unsubscribe



This archive was generated by hypermail 2.1.2 : Sat Dec 01 2001 - 20:03:11 EST