>From what I understand, the button on the cradle simple shorts a couple of pins to wake up the Palm and tell it to sync.. I don't know that you can simulate that button. There are other people on the list that might chime in here.. its out of my expertise. :)
---------- Bradly J. Barton - [EMAIL PROTECTED] Jenies Technologies Incorporated (972) 602-1835 http://www.JTI.net http://PalmInHand.com ----- Original Message ----- From: "Chris Percival" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Thursday, July 27, 2000 3:47 AM Subject: Re: Programmatically perform a HotSync > What about simulating a hotsync "keypress". i.e. put the hotsync virtual key > in the pen queue? I am guessing here by the way... > > Bradly J. Barton <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > What you need to do is launch the HotSync manager with either the > > sysAppLaunchCmdSyncRequestLocal or sysAppLaunchCmdSyncRequestRemote > command. > > You can use SysAppLaunch or SysUIAppSwitch function to do it. > > > > You can try this, but this function has not been tested.. it is something > > that was written in this email and based on something written to launch > > clipper.. (Please let me know if this works /grin): > > > > Err StartLocalHotsync(UInt alertbox) > > { > > Err err; > > DmSearchStateType searchState; > > UInt cardNo; > > LocalID dbID; > > > > // find hotsync and launch it > > err = DmGetNextDatabaseByTypeCreator (true, &searchState, > > sysFileTApplication, > > sysFileCSync, true, > > &cardNo, &dbID); > > if (err) > > FrmAlert(alertbox); > > else > > err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdSyncRequestLocal, > > NULL); > > > > return err; > > } > > > > (sysFileCSync is declared in SystemResources.h, by the way) > > > > ---------- > > Bradly J. Barton - [EMAIL PROTECTED] > > Jenies Technologies Incorporated > > (972) 602-1835 > > http://www.JTI.net > > http://PalmInHand.com > > > > > > > > > > -- > 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 ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
