Posted: Thu Apr 21, 2005 8:59 pm Post subject: How to recognize being "Idle"?
Hi, i want to know if there is a way using VB to recognize if the user is idle or not...or if there isnt a direct way to do it, then maybe seeing if there are any keys pressed, or keep track of any mouse movements...thx
Sponsor Sponsor
Tony
Posted: Fri Apr 22, 2005 8:39 am Post subject: (No subject)
You can keep track of the mouse movement. Look up the API for that.
Create a timer, and reset it every time the mouse is moved a significant amount (shaking table does not count for an active user).
If the timer manages to get up to 5 minutes or your value of choice -- you may assume that the user fell off the chair and is badly hurt.
Cinjection
Posted: Fri Jun 10, 2005 2:34 pm Post subject: (No subject)
Yea set the interval of a timer to like 5 minutes and put this
code:
Private Sub timer1_timer()
msgbox "Stop being idle....you idiot"
end sub
"a true programmer tries to insult users with message boxes." -~ for dummies