Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyautogui locatecenteronscreen mac fix

import pyautogui
position = pyautogui.locateCenterOnScreen('image.png')
print(position.x/2,position.y/2)
pyautogui.click(position.x/2,position.y/2)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyautogui #locatecenteronscreen #mac #fix
ADD COMMENT
Topic
Name
8+1 =