General information
Category:
Coding, syntax & commands
>I have an app that I want to "go to sleep" (close data tables and go into standby mode) if the user doesn't use the application within a set time. I've tried using the timer tool, but I'm not sure that is the way I want to go. Can anyone lend me some guidance on varying ways to accomplish this task? Thank you.
The simplest way to achieve this with a timer is store the lastkey() and the mouse coordinates, and then x minutes later, check to see if they've changed. If they're still the same, you can go your standby, or whatever else you'd like, for example prompting them to go into standby with messagebox that timesout (this is easy with MessageBox() and VFP7).
Previous
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