Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

keypresser.py

Wituz Feb 24th, 2014 4,026 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import win32com.client as comclt
  2.  
  3. class Keypresser:
  4.  
  5.     wsh = None;
  6.  
  7.     def __init__(self):
  8.         self.wsh = comclt.Dispatch("WScript.Shell");
  9.     def key_press(self, key):
  10.         self.wsh.SendKeys(key)
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