Created
November 13, 2014 03:59
-
-
Save jgilless/1b9e067e95b25da68f1f to your computer and use it in GitHub Desktop.
Autoclicker for Clicker Heroes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#simplest autoclicker ever | |
import win32api | |
import win32con | |
import time | |
import sys | |
def click(x,y): | |
win32api.SetCursorPos((x,y)) | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0) | |
#for i in range(30000): | |
while True: | |
click(1150,480) | |
if win32api.GetKeyState(ord('X')): | |
sys.exit() | |
time.sleep(.01) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment