Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui, time
- while True:
- pos = list(pyautogui.locateAllOnScreen('checkbox.png', grayscale=True, confidence=.8))
- for p in pos:
- print(f'{p.left}, {p.top}')
- pyautogui.click(p.left+9, p.top+9)
- # while True:
- # arrowpos = list(pyautogui.locateAllOnScreen('arrow.png', grayscale=True, confidence=.8))
- # for p in arrowpos:
- # print(f'{p.left}, {p.top}')
- # pyautogui.click(p.left+9, p.top+9)
- # time.sleep(1)
- #
- # middlepos = list(pyautogui.locateAllOnScreen('middle.png', grayscale=True, confidence=.85))
- # for p in middlepos:
- # print(f'{p.left}, {p.top}')
- # pyautogui.click(p.left + 114, p.top + 15)
- # time.sleep(.5)
- # centerpos = list(pyautogui.locateAllOnScreen('centerbox.png', grayscale=True, confidence=.87))
- # for p in centerpos:
- # print(f'{p.left}, {p.top}')
- # pyautogui.click(p.left + 281, p.top + 15)
- # time.sleep(.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement