Tracking user activity

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top