Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Logout
Message
De
16/04/1998 09:02:52
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00092027
Message ID:
00092471
Vues:
24
>> 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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform