Detecting mousemove/keypress without window-focus

1 view
Skip to first unread message

psi...@googlemail.com

unread,
Jan 6, 2014, 4:38:38 AM1/6/14
to node-...@googlegroups.com
Hi there,

im developing an time-tracking app.
Is there a way to detect mousemove/keypress even if the nw windows has no focus to reset the "user is idle" timer?

Greets

grze...@gmail.com

unread,
Jan 9, 2014, 3:12:32 AM1/9/14
to node-...@googlegroups.com
I guess you need to look at this from operating system scope not nw.

For example, if it is Linux box, i would monitor /dev/input/mice for any mouse movement, and /dev/input/eventX for keyboard activity.

In windows, i belive it is a bit more complicated, i guess i would write (with google help, becouse im not C# programmer) some app using C# hooks, which would present
keyboar and mouse activity to a text file and then the rest nw code would be the same as in Linux. But again, im not a Windows guy so maybe is a better way.
Reply all
Reply to author
Forward
0 new messages