Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Logout
Message
From
16/04/1998 09:02:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00092027
Message ID:
00092471
Views:
23
>> I'm trying to set a timer to exit my app after so many minutes of non-activity. Someone suggested using the screen object but I'm not sure how to do this. _Screen.ActiveForm is a property not an object so it has no events. I need to check for any activity to reset the timer.
>>
>>Eric K.
>
>You could reset the timer in every gotfocus or keypress event of every object but that seems like too much work. There may be something else you could do along these lines though!

Hm... how about form's KeyPress and form's MouseDown - should be sufficient to catch every important activity. It wouldn't catch pressing just alt/shift/ctrl, but would catch everything else. Using the form's MouseMove too may be usefull, or prove to be just an overkill.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform