By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,942 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,942 IT Pros & Developers. It's quick & easy.

last mouse movment or keyboard hit

P: n/a
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?
Thank you!

--
chEErs roN
Mar 26 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ro*@example.comescribió:
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/de...tinputinfo.asp
--
Gabriel Genellina

Mar 26 '08 #2

P: n/a
Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ro*@example.comescribió:
>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/de...tinputinfo.asp
>
No, it would be for Linux and preferrably it would work on MacOS & Windows
as well....is there anything?
Thanks!
--
chEErs roN
Mar 26 '08 #3

P: n/a
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 <r...@example.comwrote:
Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.comescribió:
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/de...ary/en-us/winu...

No, it would be for Linux and preferrably it would work on MacOS & Windows
as well....is there anything?
Thanks!
--
chEErs roN
Mar 26 '08 #4

P: n/a
>En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@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?
En Wed, 26 Mar 2008 13:59:15 -0300, azrael <ju*********@gmail.com>
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

Mar 26 '08 #5

P: n/a
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 <r...@example.comwrote:
>Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@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/de...ary/en-us/winu...

No, it would be for Linux and preferrably it would work on MacOS &
Windows as well....is there anything?
Thanks!
--
chEErs roN
--
chEErs roN
Mar 27 '08 #6

P: n/a
Gabriel Genellina wrote:
>>En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@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?

En Wed, 26 Mar 2008 13:59:15 -0300, azrael <ju*********@gmail.com>
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
Mar 27 '08 #7

P: n/a
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
Mar 27 '08 #8

P: n/a
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
Mar 29 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.