ControlClick doesnt work

Ask gaming related questions (AHK v1.1 and older)
User avatar
ibieel
Posts: 216
Joined: 17 Oct 2021, 23:30

ControlClick doesnt work

Post by ibieel » 26 Dec 2022, 00:54

I am not able to use ControlClick in the client of this game:
https://avatarcross.world/

Click works normally, but the X,Y coordinates don't work. regardless of the values of the parameters X,Y it clicks on the position where my cursor is.

is there any way to fix this?
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: ControlClick doesnt work

Post by mikeyww » 26 Dec 2022, 14:18

Use a specific control if there is one.
If there is a control at the specified coordinates, it will be sent the click-event at those exact coordinates. If there is no control, the target window itself will be sent the event (which might have no effect depending on the nature of the window).
Some windows may not respond to ControlClick.

See: https://www.autohotkey.com/docs/v1/lib/ControlClick.htm#Reliability

Some games block scripting.

viewtopic.php?f=7&t=11084
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: ControlClick doesnt work

Post by swagfag » 26 Dec 2022, 15:37

there is nothing to fix. ControlClick is designed to work with standard win32 controls. ur game clearly isnt one such, so theres no reason to expect the command would do anything
yet time and time again, ppl somehow read ControlClick and the letters magically rearrange themselves to spell out BackgroundClick in their brains... real strange phenomenon

run ur game maximized in a vm. run a normal clicking ahk script on it in the vm
Post Reply

Return to “Gaming Help (v1)”