funktion widerhole
Verfasst: Freitag 28. Oktober 2022, 16:26
wie kann man machen das der button mehrmals gedrückt wird
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)