Re: last mouse movment or keyboard hit
Diez B. Roggisch wrote: Ron Eggler schrieb: Hi, 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? Try hooking yourself into the OS screen-saver-code. I have looked at the KDE code but couldn't quite figure out how it's working... :o Any help would be appreciated! -- chEErs roN -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
Ron Eggler schrieb: Hi, 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? Try hooking yourself into the OS screen-saver-code. Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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 No, it would be for Linux and preferrably it would work on MacOS Windows as wellis there anything? Thanks! -- chEErs roN -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
You can use wxPython. Take a look on the DemoFiles that you can download also from the site. I remember that there has been a demo of capturing mouse coordinates and also one example about capturing Which key has been pressed at which time. Just start the time, count the interactions of key strokes and mouse gestures. Apply some statistics and voila. there it is. On Mar 26, 3:28 pm, Ron Eggler [EMAIL PROTECTED] wrote: Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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/winu... No, it would be for Linux and preferrably it would work on MacOS Windows as wellis there anything? Thanks! -- chEErs roN -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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? En Wed, 26 Mar 2008 13:59:15 -0300, azrael [EMAIL PROTECTED] escribió: You can use wxPython. Take a look on the DemoFiles that you can download also from the site. I remember that there has been a demo of capturing mouse coordinates and also one example about capturing Which key has been pressed at which time. (Please don't top post) Does wx catch all events in all other applications? My understanding is that the OP wants a global detection, not restricted to a single application. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
azrael wrote: You can use wxPython. Take a look on the DemoFiles that you can download also from the site. I remember that there has been a demo of capturing mouse coordinates and also one example about capturing Which key has been pressed at which time. Just start the time, count the interactions of key strokes and mouse gestures. Apply some statistics and voila. there it is. But that wouldn't be system wide, would it? :o On Mar 26, 3:28 pm, Ron Eggler [EMAIL PROTECTED] wrote: Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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/winu... No, it would be for Linux and preferrably it would work on MacOS Windows as wellis there anything? Thanks! -- chEErs roN -- chEErs roN -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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? En Wed, 26 Mar 2008 13:59:15 -0300, azrael [EMAIL PROTECTED] escribió: You can use wxPython. Take a look on the DemoFiles that you can download also from the site. I remember that there has been a demo of capturing mouse coordinates and also one example about capturing Which key has been pressed at which time. (Please don't top post) Does wx catch all events in all other applications? My understanding is that the OP wants a global detection, not restricted to a single application. Exactly, I would like to have it global/system widely detected -- chEErs roN -- http://mail.python.org/mailman/listinfo/python-list
Re: last mouse movment or keyboard hit
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] 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 -- http://mail.python.org/mailman/listinfo/python-list