System Idle Time
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Is there a way to find out how long the system was idle (time since last keyboard or mouse action)? Any help appreciated.
On Win2000 you can use GetLastInputInfo. On other systems you'll need to create a global keyboard/mouse hooks. Have a look at Feb'2000 issue of Microsoft Systems Journal, C++ Q&A column. It should be in the 'Periodicals' section of your VC++ help, if it's not there, go to msdn.microsoft.com, then MSDN Magazine. Tomasz Sowinski -- http://www.shooltz.com