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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32