Wituz

keypresser.py

Feb 24th, 2014
5,141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×