How to detect desktop idle time?


#1

Hi guys!

I need my app to respond to an event in which the user has been idle for X minutes (i.e. no mouse movements or keyboard inputs in that time).

How can I access such idle time data?


#2

I came here because I was also looking for a solution. I found that this https://github.com/octalmage/robotjs could be possibly used for detecting system idleness.