[python-win32] idle detection on system?
Len Remmerswaal
len200612 at revolutioncontrols.com
Thu Oct 9 13:27:28 CEST 2008
If your question is still current:
Did you try pyHook? (http://www.cs.unc.edu/Research/assist/developer.shtml).
I use it in a wxPython app: it provides a message pump. The pyHook
callback just increments an integer variable. A timer comes around every
second or so to see if the variable changed or not, and if it doesn't
during sufficient cycles, you must be idle :-) .
Hope this helps,
Len
On 20:59, Patrick Li wrote:
> Hi,
>
> Does anyone know how I can detect if a system is idle? By idle I am
> referring to a user being away from the computer (no keyboard or mouse
> movement) for X minutes. Tried searching around but I haven't found
> anything that mentions how I can hook into these two events.
>
> Thanks in advance,
> Patrick
>
More information about the python-win32
mailing list