octalmage / robotjs

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

mouseScroll() Not working on electron 8.2.0 #565

Open mariopece opened 4 years ago

mariopece commented 4 years ago

Hello i tried everything but mouseScroll() doesn't seems to be working:

Node 12 Electron 8.2.0 robotjs 0.6.0

robot.scrollMouse(0, 50); robot.scrollMouse(0, 1); robot.scrollMouse(50, "up");

i tried them all! Everything else works!

Anyone have a solution? Thanks!

mariopece commented 4 years ago

Solved!

You have an error on mouse.c line 345 : SendInput(2, mouseScrollInputs, sizeof(mouseScrollInputs)); change for: SendInput(2, mouseScrollInputs, sizeof(INPUT));

Fixes the problem on windows!

dbradleyfl commented 4 years ago

I hit this snag also. Looks like this was fixed by #508 Are you planning on releasing a new version to npm soon @octalmage? Anything I can do to help?

Smilebags commented 4 years ago

If there's an issue in scrollMouse, I'd love to be notified of a fix if/when it comes. It's the last missing part of the thing I'm currently building.

danielehrhardt commented 3 years ago

Hello i tried everything but mouseScroll() doesn't seems to be working:

Node 12 Electron 8.2.0 robotjs 0.6.0

robot.scrollMouse(0, 50); robot.scrollMouse(0, 1); robot.scrollMouse(50, "up");

i tried them all! Everything else works!

Anyone have a solution? Thanks!

Did you found a Solution.