Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! python3
- import pyautogui, sys
- import pyscreeze
- print('Press Ctrl-Z to quit.')
- while True:
- try:
- x, y = pyautogui.locateCenterOnScreen('follow.png', region=(1150,180, 1280, 730))
- pyautogui.click(x, y)
- pyautogui.PAUSE = (0.5)
- except:
- pyautogui.scroll(-7, x=1304, y=440)
- pyautogui.PAUSE = (0.2)
- pyautogui.click(x=897, y=678)
- pyautogui.PAUSE = (0.2)
- print("miss")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement