Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autologoff
Message
 
 
À
18/06/2002 16:24:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00669895
Message ID:
00670127
Vues:
20
>I need to add an auto logoff feature to an existing application. This is the standard "log off the user after x minutes of inactivity". I can think of several ways to implement this, but before I begin, I'm interested in hearing how others have done this.

We did this by using a timer at the client side constantly checking for MROW()/MCOL() and LASTKEY() change. when they do not change for xx time, close the app. This will close APP when it is not active though. When yo want to close it only when user does not touch computer, (like for screen saver), just use Windows API functions to get the mouse position.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform