Let’s say I want my program to do something after some inactivity.
For example let’s say that the user of my program won’t press any keys / or move the mouse for X seconds, then after these X seconds it’ll show a MSGBox, “you were away for X seconds”.
I think it’ll have to detect both mouse & keyboard on any program.. but how, is there any fast way to do that?
Simplest google search brought up this:
http://dataerror.blogspot.co.il/2005/02/detect-windows-idle-time.html
Should work