Auto clicking is not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tom12

Auto clicking is not working

13 Apr 2017, 06:01

So pretty much i run this script , then i press F8 and its not working :(

#SingleInstance, Force
#NoEnv
SendMode Input
fire := 0

#F8::SetTimer, AutoFire, % (fire := !fire) ? "80" : "off"

AutoFire:
ControlClick, x1111 y907, ahk_class ApolloRuntimeContentWindow,,,, Pos
return
User avatar
aztec3
Posts: 177
Joined: 07 Apr 2014, 12:05

Re: Auto clicking is not working

13 Apr 2017, 06:56

Your code is invoked via WINDOW+F8 keys (# is for the Window key).

What happens if you hold down the WINDOW key while hitting the F8 key or remove the "#" and just hit F8???

Also, you have to embed your AutoHotKey code within the code brackets to properly be displayed here.

Code: Select all

#SingleInstance, Force
#NoEnv
SendMode Input
fire := 0

#F8::SetTimer, AutoFire, % (fire := !fire) ? "80" : "off"

AutoFire:
ControlClick, x1111 y907, ahk_class ApolloRuntimeContentWindow,,,, Pos
return
tom12

Re: Auto clicking is not working

13 Apr 2017, 07:09

I removed # but its still not working when I press F8 no idea why
User avatar
aztec3
Posts: 177
Joined: 07 Apr 2014, 12:05

Re: Auto clicking is not working

13 Apr 2017, 07:23

I don't think you need the "ahk_class" in that parameter, just make it "ApolloRuntimeContentWindow", also not sure with your parameters for the SetTimer.

When I run into these kind of issues, I "back off" on some of the code to the point where it does work and then proceed to what breaks it.

https://autohotkey.com/docs/commands/SetTimer.htm
SetTimer [, Label, Period|On|Off|Delete, Priority]
tom12

Re: Auto clicking is not working

13 Apr 2017, 08:42

I have used this guide https://www.reddit.com/r/ClickerHeroes/ ... g/craa1wv/

I just changed location of my mouse and inserted F8 as a start but it doesnt look like its working

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Joey5 and 206 guests