Detecting user activity in Python

S

Stefan Behrens

Hi all,

does anyone know a way to detect whether the user is "active"
at the desktop?

What I mean is, whether he/she is actively using the machine
by typing or moving the mouse. What I am looking for is some
kind of trigger to subscribe for. I'd need to distinguish cases
where the screen is locked and someone just touched the mouse
unwantedly.

I rather doubt that such functionality is in Python itself, i.e.
can be used platform independently. So in that case, has anyone
examples of how to do that in native C++ for Windows and Linux?

TIA

/Stefan.
 

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top