Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Issue
Message
De
26/11/2001 15:42:37
 
 
À
26/11/2001 15:26:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00585953
Message ID:
00585975
Vues:
17
>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).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform