?!
>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
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