Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I detect user activity?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00293464
Message ID:
00293471
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform