SHARE
TWEET

Untitled

a guest Jul 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from pynput.keyboard import Controller, Key
  2. import time
  3.  
  4. keyboard = Controller()
  5. time.sleep(5)
  6. while True:
  7.     keyboard.press(Key.up)
  8.     time.sleep(0.2)
  9.     keyboard.press(Key.right)
  10.     time.sleep(0.2)
  11.     keyboard.press(Key.down)
  12.     time.sleep(0.2)
  13.     keyboard.press(Key.left)
  14.     time.sleep(0.2)
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