I want to run a process in the background in NodeJS, which waits until the computer has been used for 10 minutes. I mean, the user does not touch the keyboard or mouse.
In other words: I want to listen to keyboard and mouse events in any window and notify my application when this happens.
For this mission, I can use simple node, or nw.js or electron.
I think I should use C ++, a native module and a DLL. But I hope there is a better and simpler solution.
You have?
source share