At 7:02 PM -0500 1999/11/09, Roger Chaplin wrote:
>"Charles Rezsonya" <[EMAIL PROTECTED]> wrote:
> > is there an event that gets passed that tells that the unit is going to
> > sleep (after 1, 2, 3 mins or so).  if so,  what is it?
> > 
> > if there isn't one i know it would be very useful.  for example in my
> > scenerio where security is an issue,  if the unit turns off,  then it would
> > be good to be able to toss back the user to the introductuary login screen
> > so someone else doesn't use their account.
>
>Look for a keyDown event with character autoOffChr. There is one 
>caveat: this is not a guarantee that the device will turn off, but 
>rather a request to the OS to power off. This topic has been discussed 
>on this list; check the archives.

Please note the autoOffChr (now called vchrAutoOff) and powerOffChr (now called 
vchrPowerOff) keyDown events will also have their command key bit set in the modifiers 
field, to distinguish these "virtual" keys from "actual" keys. This tidbit is 
important as we move into the unicode world.

But perhaps more importantly, Palm OS 3.5 may include new notification manager APIs to 
obtain this information more directly and reliably.

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering


Reply via email to