Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Issue
Message
From
26/11/2001 15:42:37
 
 
To
26/11/2001 15:26:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00585953
Message ID:
00585975
Views:
16
>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
Map
View

Click here to load this message in the networking platform