Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only