Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need timeout check for entire program
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00692237
Message ID:
00692407
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>Hi all,
> I need a way to check for no user activity for a given period of time anywhere in the program. If the time is exceeded then I have to load a password screen. Loading the password screen is very easy. The hard part is finding a way to check for the inactivity.
>
> I could put a timer in the 1st screen that is always loaded and create a small function to reset the timer using the keypress event of my form base class but that seems like a lot of overhead. I would also have to go back through all my screens and make sure I have dodefault() in any that I use the keypress in. (And that is a whole lot of screens, over 150.)
>
>Anyone got a better idea?

If it is complete system inactivity, you can use the timer to check mcol() and mrow(). If you have to see if your application is idle, check something like _screen.activeform.name or some other property and compare the values to what they were the last time your timer fired.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform