Advertisement
Guest User

writingData.py

a guest
Jan 9th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import pyautogui
  2. from time import sleep
  3.  
  4.  
  5. def startGame ():
  6.     x, y = pyautogui.locateCenterOnScreen('playButton.png')
  7.     pyautogui.click(x, y)
  8.  
  9. def quickDrop ():
  10.     pyautogui.press('space')
  11.  
  12. def holdSwap ():
  13.     pyautogui.press('shift')
  14.  
  15. def spin ():
  16.     pyautogui.press('up')
  17.  
  18. def moveLeft():
  19.     pyautogui.press('left')
  20.  
  21. def moveRight():
  22.     pyautogui.press('right')
  23.  
  24.  
  25.  
  26. startGame()
  27. sleep(3.2)
  28.  
  29. for x in range (0,4):
  30.     moveLeft()
  31.  
  32. quickDrop()
  33. holdSwap()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement