You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have scaling set to 100%? If not, you have to correct for the scaling factor const display = electron.screen.getPrimaryDisplay() robot.moveMouse(display.size.width * display.scaleFactor, display.size.height * display.scaleFactor)
Expected Behavior
Mouse moves to center of screen
Current Behavior
Mouse moves to 125% of coordinates
Possible Solution
Within my script multiplying x,y coords by 4/5 gets to the correct location
Steps to Reproduce (for bugs)
robot.mouseMove(960, 540);
vs
robot.moveMouse((960 * 4) / 5, (540 * 4) / 5);
Your Environment
The text was updated successfully, but these errors were encountered: