Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inactivity Timer
Message
De
05/10/1996 20:17:01
 
 
À
05/10/1996 18:34:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00009354
Message ID:
00009477
Vues:
58
?!

>I'm sorry, but I can't follow you.
>So, I have a timer object and I know when the application was started.
>Can you tell me exactly what tests I must do in the timer event to know that my app is active or inactive.
>
>How can I know that in the last, let's say 15 minutes, the user pressed a key, or moved the mouse, or launched a report or a query, etc., etc.
>
>The problem is not to close the app in any condition. The app should be closed only if is inactive for a specified time.

Paul, one thing you can do is add a LastTouch property to your application class (or base form/formset) and have the Keypress and MouseMove events of every base class update this property
and have a timer that will compare the current time with this value

note that the timer will not fire while fox "works" e.g. if a large query is running (in VFP3.0 I have to test it in 5.0)

Arnon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform