last mouse movment or keyboard hit

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Mar 26 05:14:23 CET 2008


En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ron at example.com> escribió:

> I would like to get the time of the most recent human activity like a  
> cursor
> movement or a key hit.
> Does anyone know how I can get this back to start some action after there
> has been no activity for X minutes/seconds?

Which platform? On non-ancient Windows versions, you can periodically  
check GetLastInputInfo
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getlastinputinfo.asp


-- 
Gabriel Genellina




More information about the Python-list mailing list