Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import win32com.client as comclt
- class Keypresser:
- wsh = None;
- def __init__(self):
- self.wsh = comclt.Dispatch("WScript.Shell");
- def key_press(self, key):
- self.wsh.SendKeys(key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement