Weird ControlClick problem in Idle Champions

Ask gaming related questions (AHK v1.1 and older)
PCsteps
Posts: 1
Joined: 17 May 2021, 23:51

Weird ControlClick problem in Idle Champions

Post by PCsteps » 18 May 2021, 00:12

Hey everybody, complete AH newbie here.

I want to make a really simple script, that will continuously click the Idle Champions game on the background while I am working. This is what I have used

Code: Select all

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

NumpadDiv::SetTimer, AutoFire, % (fire := !fire) ? "25" : "Off"

AutoFire:
ControlClick, x449 y535, ahk_class UnityWndClass,,,, Pos
 return
When I run this script, it won't work at all. However, when I have activated the script with NumpadDiv, when I move the mouse cursor to the game window, it will autoclick beneath the mouse cursor like crazy. Wherever I move the mouse within the game window.

Here is my Window Spy info https://i.imgur.com/bzXnflp.png

I have tried "Run with UI Access". I have tried compiling it to .exe and running it as admin. Nothing has changed.

Any help would be greatly appreciated.
Last edited by gregster on 18 May 2021, 00:28, edited 1 time in total.
Reason: Link fixed; topic moved to 'Gaming'.

Return to “Gaming Help (v1)”