Advertisement
Guest User

Paint Ghost Clicker

a guest
Jan 16th, 2014
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.18 KB | None | 0 0
  1. import win32api
  2. import win32con
  3. import time
  4. import random
  5. import sys
  6.  
  7.  
  8. def press_key(key):
  9.     win32api.keybd_event(key, 0, win32con.KEYEVENTF_EXTENDEDKEY, 0)
  10.  
  11. def click(x,y):
  12.     win32api.SetCursorPos((x,y))
  13.     win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
  14.     win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
  15.  
  16. RETURN = 13
  17. SCREEN_HEIGHT = win32api.GetSystemMetrics(1)
  18.  
  19.  
  20. click(0,SCREEN_HEIGHT)
  21. click(0,SCREEN_HEIGHT)
  22. time.sleep(1)
  23. for letter in "PAINT":
  24.     press_key(ord(letter))
  25.     time.sleep(random.uniform(0.2,0.5))
  26. time.sleep(.2)
  27. press_key(RETURN)
  28.  
  29. time.sleep(2)
  30.  
  31. win32api.keybd_event(win32con.VK_LWIN, 0x5B, 0, 0)
  32. win32api.keybd_event(win32con.VK_UP, 0x20, 0, 0)
  33. win32api.keybd_event(win32con.VK_UP, 0x20, win32con.KEYEVENTF_KEYUP, 0)
  34. win32api.keybd_event(win32con.VK_LWIN, 0x5B, win32con.KEYEVENTF_KEYUP, 0)
  35.  
  36. time.sleep(1)
  37.  
  38. click(289, 69)
  39. time.sleep(1)
  40. click(289, 69)
  41.  
  42. click(14,161)
  43. time.sleep(1)
  44. click(14,161)
  45.  
  46. if len(sys.argv) > 1:
  47.     message = ' '.join(sys.argv[1:])
  48. else:
  49.     message = "YOU HAVE BEEN HACKED"
  50.  
  51. for letter in message.upper():
  52.     press_key(ord(letter))
  53.     time.sleep(random.uniform(0.1,0.4))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement