I would like to know how long it\'s been since the user last hit a key or moved the mouse - not just in my application, but on the whole \"computer\" (i.e. display), in orde
I got an answer regarding mouse-clicks suggesting to use pyHook:
Detecting Mouse clicks in windows using python
Here's some other code I did to detect mouse-position via ctypes: http://monkut.webfactional.com/blog/archive/2008/10/2/python-win-mouse-position
A more round-about method to accomplish this would be via screen capture and comparing any change in images using PIL.
http://www.wellho.net/forum/Programming-in-Python-and-Ruby/Python-Imaging-Library-PIL.html