Listen keyboard and mouse events outside of Electron App


Is it possible to access native libs of Windows/OSX to access all the mouse and keyboard events?

Like a KeyMouseLogger running in the background, but monitoring and register all the movements of mouse and keyboard?

In my company we have two native apps (Win&OSX) to doing that, but if we can do that with a cross-platform framework avoid us a lot of effort, so that’s our point.



Electron doesn’t have this functionality built-in. Additionally, while there are valid uses for such techniques, the far more common uses are nefarious (collecting passwords, stealing access to private information, etc). We don’t want Electron used to violate others’ privacy or worse, nor do we condone such activities. Because of this, I’m going to lock this topic.

closed #3