Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I detect user activity?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00293464
Message ID:
00293471
Vues:
27
This is handled in Visual MaxFrame, a VFP application framework, by including a:

oApp.SetLastUserActivity()

in their bases classes.GotFocus() method. So the global application object, oApp, can keep track of how long the application has been inactive. Then, after the specified period of inactivity (5 minutes in your case), oApp would shut down all open forms and shut down the app. I think other frameworks do something similar

>I want to halt an application when the user leaves it idle for 5 minutes. For screens I use the keypress() method to detect the keyboard activity and reset the timer. How do I detect the MOUSE activity? May be I should use ON KEY LABEL command?
>TIA
>Ed
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform