I do this in AutoSync.  It's very easy.  You almost answered your own 
question "just like pressing the button on the cradle" ;-)

Add a key event with hardCradleChr (in ui/Chars.h) with the command key
modifier.
------
EventType newEvent;
newEvent.eType = keyDownEvent;
newEvent.data.keyDown.chr = hardCradleChr;
newEvent.data.keyDown.modifiers = commandKeyMask;
EvtAddEventToQueue (&newEvent);
------

Ron Gouldner
--------------------------------------------------------------------
RGPS Development
Makers of Quality Palm Computing Platform Software
AutoSync, MindMeld, PalmVhack, PilotEyes, PokerLogic and StayOffHack
http://www.rgps.com
[EMAIL PROTECTED]
-------------------------------------------------------------------- 
<pre>
How can I make my app fire the HotSync (just like pressing the button on 
the
cradle)?
</pre>


Reply via email to