well actually this is for AutoSync which launches a Sync. When the sync
is done I want to return to the previous app that was running. So when
my AutoSync alarm goes off I need to store the application details of the
active app and then I want to launch that app later.
Ron
-----Original Message-----
From: Roger Chaplin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 01, 1999 1:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Is it possible to determine which app is active when a
alarm is activated
> I am writing an app that receives an alarm and launches my program
> after some processing I want to return to the previous app.
>
> I tried saving the value of SysCurAppDatabase during the alarm triggered
> event but this call seems to return the app receiving the alarm triggered
> not the "real" current app database.
>
> Does anyone have any tips on how to determine the current UI app ?
When your app is handling an alarm launch code, it does not need to do
anything special to cause return to the active app (the one that was
running when the alarm went off). Just return from your PilotMain
routine. That's all there is to it.
--
Roger Chaplin
<[EMAIL PROTECTED]>