Roger Chaplin wrote:

> "W.F. Ableson" <[EMAIL PROTECTED]> wrote:
> 
> > Though the hack may not be in effect at the time.  When the device is reset,
> > Hackmaster asks if you want to reinstall your hacks.  Does hackmaster get
> > invoked prior to any other "app" being launched at reset?
> 
> I'm not sure (since I don't have the HackMaster source code handy :-)
> but I would imagine that HackMaster is putting that prompt up in
> response to getting the SystemReset launch command. I don't think there

I�d think so, too.

> Someone else (sorry, don't know who) wrote:

That�s been me.
 
> What variables do you want to set? Something that you have saved in
> preferences, or in your own database? Or, are you trying to set some

PrefSetPreference(prefDeviceLocked, true)

is all I want to do. And it does work - if the Palm is reset by
pressing a "reset" button like HackMaster supplies, or after the
Palm crashes. But if the reset is a 'paper clip' reset, then it does
not work - leading me to the conclusion, that in this case
SysReset() is not called, although the documentation says otherwise:
"This routine is called when the user presses the hidden reset
switch on the device." So is this a bug in the manual or am I
misunderstanding sth?

> A reset also undoes any and all trap patches. 

A friend tried to delete a hack while it was still enabled in
Hackmaster. Even after resets the Palm crashed (a no-notification
reset helped). But otoh you must be right, because I tried to patch
SysBroadcastActionCode() to catch the SystemReset-launchcode, but it
did not work (assuming that the Palm does really use
SysBroadcastActionCode() to sent the SystemReset launchcode ... ;))

> So, the only way you're going to be
> able to do this kind of work after a reset is to respond to the
> SystemReset launch command. 

I�ve been afraid so ;-( It does work quite good, that�s the good
news. But of course I don�t like my users to install two files if
one would be sufficient ;(

Another question that arose was the visibility in the launcher. It�s
only a 1k prc-file and not meant to do any graphical output.
According to the PalmOS Dev Documentation only databases of type
'appl' receive launch commands. Now another friend told me to use
'panl' and voila, the app is not longer visible but still receives
launchcodes. I�ve tried a grep on the docs but found no 'panl'
mentioned. Strange. Is 'panl' really the same as 'appl' with the
difference that it is not displayed?

> Unfortunately, as you probably well know,
> hacks don't receive launch commands at all.

I know ;-(

> Mr. Keyes has made mention of some features in HackMaster 2 that will
> greatly help in situations like this. I hope we see it soon.

Hackmaster 2? Have I missed Hackmaster 1? Where can I found more
information, e.g. where has he mentioned what? <getting curious ...> 

-- 
 Tschau,            ICQ 28589118
      Daniel        [EMAIL PROTECTED]
                    http://www.dseifert.de/        Berlin, Germany

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to