Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I detect user activity?
Message
From
21/11/1999 03:39:36
Walter Meester
HoogkarspelNetherlands
 
 
To
20/11/1999 10:58:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00293464
Message ID:
00293607
Views:
28
Edward,

>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

For this reason I developed a timer to do this. this timer fires at regular interval and stores the mouse position and the last key pressed. When it fires the next time it compares the current values to the stored one. If they match, the app *could* (and probably will) be idle. This solution though is not perfect. The timer could use some improvements.

The most beatifull part of this timer is that you don't need to change the rest of your application; no additional function calls in Activate, intit or keypres events.

I'll post this timer to the files section. Maybe you can improve it by yourself.


Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform