Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inactivity Timer
Message
From
05/10/1996 20:17:01
 
 
To
05/10/1996 18:34:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00009354
Message ID:
00009477
Views:
59
?!

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform