Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement