renix1

bot to click

Feb 19th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import pyautogui
  2.  
  3.  
  4. def play_button():
  5.     play  = pyautogui.locateCenterOnScreen('play_button.png', grayscale=True)
  6.     if play is None:
  7.         pass
  8.     else:
  9.         pyautogui.moveTo(play)
  10.         pyautogui.click()
  11.  
  12. while 1:
  13.     play_button()
Advertisement
Add Comment
Please, Sign In to add comment