octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.31k stars 951 forks source link

Ingame scrolling only work as Admin in Windows10 #604

Open Oxxyde opened 4 years ago

Oxxyde commented 4 years ago

Hi, Robotjs is only able to scroll in a game when Electron app is started with administrator privileges. When normally launched (no admin) the mouse move works but no scrolling happens.

Expected Behavior

Working without administrator privileges if possible.

Current Behavior

Requires administrator privileges

Steps to Reproduce (for bugs)

let i = 0; let scrollTimeInterval = setInterval(() => { robot.scrollMouse(0, (-50)); i++; if (i>=5) { clearInterval(scrollTimeInterval); } }, 50);//150

Context

The scrolling must happen inside a windowed fullscreen game. (Black desert online in this case)

Your Environment