You can capture the the Hotsync button with the keyDown event.
the key code is hardCradleChr (0x0209) or hardCradle2Chr (0x020A).
You have to capture it in your AppStart procedure before the SysHandleEvent
otherwise it will cature the event before you.
> -----Original Message-----
> From: Ralf Beckers [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, April 10, 1999 2:41 AM
> To: [EMAIL PROTECTED]
> Subject: Hotsync
>
> Hi there!
>
> I wrote a program which is used to collect data via IrDA. After
> collecting ~1.5 MB of Data the palm is used to send its data to a pc via
> the cradle (I send it serial). So no real hotsync is required. But it's
> too complicated for a user to tap an screen to initialize upload while
> the palm sits on its cradle.
>
> Is there a possibility to press the hotsync button an "capture" this
> event in my program?
> Or do I have to write a hack or s.th. else?
>
> Or maybe you have a good idea to make this upload simple. I will not
> write any conduits, cause the palm will only be used for this program,
> so no real hotsync is required, and would be too confusing to the user
> ;-)
>
> thnx in advance,
> bexxx
> --
> "Donuts - is there anything they can't do?"
> Homer J. Simpson