How to track mouse move event on screen


It is easily possible to track mousemove event by adding event listener.
But is it possible to get mouse position (and event handler triggered) if the cursor is not over the electron app window?


Take a look at robotjs:

hope it will help you