Computer Science Canada

How to recognize being "Idle"?

Author:  Ashi_Mashi2 [ 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

Author:  Tony [ Fri Apr 22, 2005 8:39 am ]
Post 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.

Author:  Cinjection [ Fri Jun 10, 2005 2:34 pm ]
Post 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

lol


: