a guest May 17th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #just run 'pyinstaller --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!')
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