Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- import time
- pyautogui.FAILSAFE = True
- screen_width, screen_height = pyautogui.size()
- def run():
- while(1):
- pyautogui.moveTo(screen_width / 2, screen_height / 2)
- pyautogui.click()
- '''Myndir eru sóttar sem png skjöl'''
- time.sleep(6)
- pyautogui.click('FirstClick.png')
- pyautogui.press('down')
- pyautogui.press('enter')
- #pyautogui.click('me.png')
- #pyautogui.click()
- pyautogui.click('button1.png')
- time.sleep(1)
- try:
- pyautogui.click('try_again1.png')
- pyautogui.click('tryAgain.png')
- except Exception as e:
- time.sleep(2)
- try:
- run()
- except Exception as e:
- print(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement