Tracking user activity

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How do you detect if there is (or not) user activity on a computer. Probably
the same technique as used in the screen saver. Can I subscribe to some OS
event.

Regards Jesper, Denmark.
 
You need to use WinAPI function GetLastInputInfo
(http://www.pinvoke.net/default.aspx/user32/GetLastInputInfo.html)

It shows user-idle state
How do you detect if there is (or not) user activity on a computer. Probably
the same technique as used in the screen saver. Can I subscribe to some OS
event.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top