Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I imagine an OS must keep track of when the last user input (keyboard or mouse use, for example) was, or of how long it's been since the last user input, in order to know when to run a screensaver.

Is there any way of seeing this information on MS Windows 7? I'm thinking of a program that will display a constantly updated number indicating the number of seconds since the last user input.

share|improve this question

2 Answers 2

This is probably more of a programming question for Stack Overflow but...

There is a codeproject example in C# here: http://www.codeproject.com/KB/cs/globalhook.aspx

"Processing Global Mouse and Keyboard Hooks in C#" by George Mamaladze | 12 Nov 2008

If you use this you may want to read some of the comments at the bottom of the article that talk about resolving issues between Windows XP and Windows 7.

share|improve this answer
    
If it's a programming question, that's unfortunate, as my programming skills are next to nil. That's why I asked it here, hoping for a built-in solution in the OS. Thanks for the link, though. –  msh210 May 31 '11 at 15:00

While windows does in fact do that, I am not sure how to go about collecting that info. Instead, why not just hook into the mouse/keyboard and set a timer up?

share|improve this answer
    
See my comment to Kerry's answer. –  msh210 May 31 '11 at 15:01
    
No way to do it. Flagging for SO. –  soandos May 31 '11 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.