SHARE
TWEET

antiidle

a guest Dec 14th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pyautogui, time
  2.  
  3. while True:
  4.     # Holds down the alt key
  5.     pyautogui.typewrite('exura')
  6.     pyautogui.press('enter')
  7.     pyautogui.keyDown('ctrl')
  8.  
  9. # Presses the tab key once
  10.     pyautogui.press('up')
  11.     pyautogui.press('down')
  12.  
  13.     # Lets go of the alt key
  14.     pyautogui.keyUp('ctrl')
  15.     x, y = pyautogui.size()
  16.     foodx = x-90
  17.     foody = y / 2 - 150
  18.     y = y / 2 - 180
  19.     leftx = x / 2 - 180
  20.     rightx = x / 2
  21.     pyautogui.moveTo(leftx, y)
  22.     pyautogui.click(button='right')
  23.     pyautogui.moveTo(rightx, y)
  24.     pyautogui.click(button='right')
  25.     pyautogui.moveTo(foodx, foody)
  26.     pyautogui.click(button='right')
  27.    
  28.     time.sleep(10)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top