last mouse movment or keyboard hit

R

Ron Eggler

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!
 
A

azrael

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.
 
G

Gabriel Genellina

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.
 
R

Ron Eggler

azrael said:
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? :eek:
 
R

Ron Eggler

Gabriel said:
(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
 
D

Diez B. Roggisch

Ron said:
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
 
R

Ron Eggler

Diez said:
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... :eek: Any help would be appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,685
Members
48,796
Latest member
Greg L.

Latest Threads

Top