Determining if your device is in the cradle is only doable with considerable work and custom desktop support. Forget about it.
Returning to your app after the sync can be done two ways: 1. If certain conditions are met (a conduit registered to sync your data has run, plus a record database with your app's creator id has been modified during the sync), you will get a post-sync launch with a syncAppLaunchCmdSyncNotify launch code. This will happen on all PalmOS versions. 2. If running on a modern enough PalmOS (with the Notification feature set), you can register for and get a launch on sync finish. Once you get launched in either of the above manners, you can either: 1. Do whatever you need to do directly off of that launch (no globals, though). 2. Spark a normal launch via a SysUIAppSwitch call. The latter approach is dependent on no other application also trying to do the same thing, though. -bob mckenzie, palm pdx -----Original Message----- From: Ole Grossklaus [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 10:57 AM To: Palm Developer Forum Subject: Re: How to invoke hotsync from my program for Palm m100 with seri al cable > > Simplest way is to post a key event simulating a press of the HotSync button > on the cradle. > > EvtEnqueueKey( hardCradle2Chr, 0, commandKeyMask ); > > Gavin. That sounds easy. I have the same task to acomplish but have to return to my application after the hotsync is done. Therefore these (aditional) questions: - How can I determine if my palm is in the cradle or not... - How can I return back to my app once the hotsync is done? Thanks for some pointers Ole -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
