>     I was looking for any information regarding to the moment on when the
> palm is turned off. Either with the auto-off feature or when you press the
> on/off button. I would like to perform some special functions in that
> specific moment, might be quitting the application or running some
> particular code.
> 
>     I was wondering if the palm generate any event that i can hook or
> something may be something else. I looked up in the references but without
> success.

When you press the green power key to turn the device off, a keyDown 
event is generated. The key character is hardPowerChr and the 
commandKeyMask bit of the modifiers will be set. If the device reaches 
its auto off time, a keyDown event is generated, with the key character 
being autoOffChr and the commandKeyMask modifiers bit set.

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to