Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inactivity Timeout
Message
De
26/09/2006 11:31:46
 
 
À
26/09/2006 11:19:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01156931
Message ID:
01157268
Vues:
29
>>Has anyone coded an inactivity timeout in their VFP app? I have a couple of ideas, but they have holes in them. I'm thinking of setting a variable to datetime() and using a timer (about once a minute) to check if the allowable time has passed. The problem, of course, is how to reset the variable that holds datetime() whenever user activity happens. I can use the forms' mousemove and keypress (with keypreview) events to update the variable. But it would probably also mean having to code into the mousemove and keypress events of every base control.
>>
>>Anybody done this a more sensible way maybe using the windows API?
>
>Detectar inactividad (Detect inactivity):
>http://www.portalfox.com/index.php?name=News&file=article&sid=2227
>
>Carlos

Thanks Carlos. This is close to what I've decided to do, but I'm not using the Windows API. I'm using AMOUSEOBJ() to get mouse positions instead. Just seemed simpler that way. I may go with the api for keyboard activity though. Thanks for the idea.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform