Guest User

Untitled

a guest
May 17th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #just run 'pyinstaller filename.py --onefile' to run in the background
  2. import keyboard
  3. while True:
  4. keyboard.wait('q')
  5. keyboard.press_and_release('a')
  6. keyboard.press_and_release('b')
  7. keyboard.press_and_release('c')
  8. print('q was pressed!')
Add Comment
Please, Sign In to add comment