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
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.