Hello,(palm TX OS5.49)am trying to detect how the device wakes-up, whether 
from pressing one of the hard keys,pressing the power button, pressing the 
5Waycentre button or from an alarm. To differentiatebetween the user starting 
the device and an alarmwaking the device up.Using notifications, it is possible 
to get thekey event data from a key press when powering thedevice - from the 
SysNotifyParamType struct.The alarm when activated or displayed is also 
sendingkey data in the form of a virtual chr, vchrAlarm,this triggers the 
notification handler for key-pressed,(sysNotifyVirtualCharHandlingEvent), The 
following code works well for detecting whethera button has been pressed or if 
an alarm has gone off. but the 5Way centre and power button are 
beinginterpreted as an alarm.// in notification handlerif 
(keydown.modifiers&commandKeyMask)    switch(keydown.chr){    case vchrHard1 : 
//code, etc..    case vchrHard2 : //code, etc..    case vchrHard3 : //code,
 etc..    case vchrHard4 : // code, etc..    case vchrRocker : // code, etc..   
 case vchrAlarm : // code, etc..    case vchrHardPower:// code, etc..    } can 
anyone help please, many thanks and regards Darren 


      
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to