Create a timeout?

vnarod

Regular
Joined
Mar 22, 2002
Messages
84
Is there an easy solution to check if user was using the application within last n minutes? I need to create an "application inactivity timeout"
 
A lame but easy way to do it would to be have a seperate thread running a simple timer, then everything you "do" something then you can tell the thread to start over. If the thread reaches its timeout it can send a message to the main app to shut down or do what ever. Can't think of a way without using threads...
 
Back
Top