Skip to content

Instantly share code, notes, and snippets.

@jgilless
Created November 13, 2014 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgilless/1b9e067e95b25da68f1f to your computer and use it in GitHub Desktop.
Save jgilless/1b9e067e95b25da68f1f to your computer and use it in GitHub Desktop.
Autoclicker for Clicker Heroes
#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