Alex Rivera | Logout

How to tell when Windows is inactive

Asked 2008-10-15T01:04:15.403
11

Various programs can do stuff only when you haven't used the computer for a while (eg screensaver, Google Desktop indexing, etc).

How do they know when it has been inactive? Is there some function in Windows that tells you how long it has been inactive, or do you have to use some kind of keyboard/mouse hook to track activity yourself?

I'm using C#, but I'm interested in any method of determining the inactivity.

Edit
Report

1 Answer

5

Google is your friend

Basically uses this.
don't forget to fully ready the documentation before using.

answered 2008-10-15T01:12:41.347

Your Answer