Code: Alles auswählen
from pyautogui import locateCenterOnScreen, click
def click_button(image):
while True:
position = locateCenterOnScreen(image, confidence=0.90)
if position:
break
x,y =position
click(x, y)
return
image = 'button.png'
click_button(image)