0

I'm running on Macbook and my issue is that functions like pyautogui.moveTo use a coordinate system of 1440,900 when my screen size is 2560,1600)

This is a problem because other commands like pyautogui.pixel use the real screen size (2560,1600) so the too commands aren't in sync

1 Answers1

0

You can easily solve this problem by using scaling.

take the position you want to click and multiply its x and y - coordinates by the scaling factor (for example: on a macbook pro retina this is 0.5).

scaling = 0.5 # any scaling factor you wish
position = (1200, 1500) # the coordinates where you want to move to

x, y = position
x *= scaling 
y *= scaling  

and then, as usual:

moveTo(x, y)   
chrischma
  • 101
  • 1
  • 4