So I've recently become very addicted to Clicker Heroes. For those of you who don't know it is a browser based clicker game similar to Cookie Clicker. I've been just using a simple autoclicker program that clicks at the location of my mouse, which has been effective during the day while I'm at work, but it causes issues while I'm home. The problem comes from a stacking combo buff i receive from actively clicking, which running 10 hours while I'm gone adds up to a bunch of bonus dps. The issue is when I return from work, I can't do any other tasks without losing my click buff or constantly window swapping. In fact I'm actually doing just that to type this post. I stumbled upon AHK, hoping to find a way to maintain fast autoclicking on an inactive browser screen on my secondary monitor, while allowing me to browse, type, and game on active windows on my main monitor. I'm extremely new to this program, and I'm in dire need of fixing this issue, so any help would be greatly appreciated.
Here you go. Just put in the coords and window name where commented (comments are denoted by a semi-colon). Ctrl+F1 toggles it. The rest I leave to you.
#Persistent SetTitleMatchMode 2 ; allows titles to be partial xcoord:=0 ; put in the x-coordinate of where you want to click, based on the upper-left of the WINDOW ycoord:=0 ; put in the y-coordinate winName=Clicker Heroes ; name of window, which can be partial; you may also use ahk_class SetTimer,clickerHeroes,10 return ^F1::ppause:=!ppause clickerHeroes: while(ppause) sleep 100 ControlClick,% "x" xcoord " y" ycoord,% winName,,,,Pos return
OS: Windows 7 Ultimate / Windows 8.1 Pro | Editor: Notepad++
It looks like you forgot to c+p the whole script Mason posted.
Yea, not really sure how I missed that.
So, I tried it again. Below is my script, but nothing seems to be happening.
Hope it helps
See I originally had it like that and it wasn't and after changing it back, still isn't working.