Here is a simple method you could use which is system wide meaning that if your application AND any other system function is idle then you could log them off.
You have to call the function SecondsIdle every so often to return the value of how many seconds the system has been idel, mouse movement, key strokes etc.
John
Main Topics
Browse All Topics





by: rllibbyPosted on 2008-12-11 at 07:39:43ID: 23149170
If you already have the logon / logoff functionality, then it seems like the issue would be determining when/how to call it. If you take a look at the following PAQ, you will find code that demonstrates an auto-minimize when the app is idle (defined by no mouse clicks / key events) for a set amount of time.
http://www.experts-exchang
Seems like it would be pretty simple to adapt the code to call your logoff functionality.
Russell