Detecting user activity in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan Behrens

    Detecting user activity in Python

    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.

Working...