
-----------------------------------
Ashi_Mashi2
Thu Apr 21, 2005 8:59 pm

How to recognize being &quot;Idle&quot;?
-----------------------------------
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

-----------------------------------
Tony
Fri Apr 22, 2005 8:39 am


-----------------------------------
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
Fri Jun 10, 2005 2:34 pm


-----------------------------------
Yea set the interval of a timer to like 5 minutes and put this


Private Sub timer1_timer()
      msgbox "Stop being idle....you idiot"
end sub


"a true programmer tries to insult users with message boxes." -~ for dummies

lol
