I'm trying to make a simple script, that press the 1
key and then clicks on specific X,Y coordinates on an inactive window.
Here's my code
$1::
Loop
{
; ControlClick, X682 Y515, ahk_pid 8356
ControlSend, , 1, ahk_pid 8356
Sleep, 300
ControlSend, , {Click 682, 515}, ahk_pid 8356
Sleep, 300
}
Return
The ControlSend
command to press the 1
button works, but the {Click}
doesn't. What am I doing wrong?