Advertisement
j0h

pyKeys

j0h
Jul 31st, 2023
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import time
  2. import pyautogui
  3.  
  4. def send_key(key):
  5. pyautogui.press(key)
  6.  
  7. # youll need to context switch to the application listening for the keys
  8. send_key('1')
  9. send_key('2')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement