Answer the question
In order to leave comments, you need to log in
How to get IDLE time in C under Windows?
Can anyone suggest how to properly get user activity idle time under Windows in C?
All the solutions I found are implemented in C#...
Ideally I would like something similar on MacOSX or Linux
https://github.com/gpolitis/xidle
https://github.com/kairichard/idler
Perhaps someone then tell me some cross-platform library to get idle time?
Answer the question
In order to leave comments, you need to log in
User inactivity is expressed in the fact that he does not move the mouse and does not knock on the keys?
Then you can simply put a hook on these events through SetWindowsHookEx and track inactivity by a timer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question