ControlClick not detecting the coordinates

Ask gaming related questions (AHK v1.1 and older)
TastyToast
Posts: 1
Joined: 20 Mar 2020, 14:14

ControlClick not detecting the coordinates

20 Mar 2020, 14:25

Code: Select all

WinActivate, ahk_class YYGameMakerYY

SendMode Input
SetTimer, Script, 1000
Script:
    loop {
        ControlClick, x790 y297, ahk_class YYGameMakerYY ,,LEFT 
return
      }
This code isn't working as intended, the clicks are being made in the window i want, but not exactly where i want. The clicks are going to wherever my cursos is. What am I doing wrong? Thanks.
guest3456
Posts: 3469
Joined: 09 Oct 2013, 10:31

Re: ControlClick not detecting the coordinates

20 Mar 2020, 14:40

youre likely doing nothing wrong. the game isn't responding properly to ControlClicks

you might need to write your own controlClick and post a WM_MOUSEMOVE msg first:
https://autohotkey.com/board/topic/96952-possible-controlclick-improve/

otherwise you'll need to just do a normal Click


Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 69 guests