ControlClick Coordinates Ignored Topic is solved

Ask gaming related questions (AHK v1.1 and older)
illusive101

ControlClick Coordinates Ignored

02 Dec 2015, 02:01

Hi there,

Currently using ControlClick to send clicks in the background window of a game. The clicks are successfully being sent in the background but they're ignoring the coordinates specified, so if I move my mouse it will click whereever my mouse is.

Code: Select all

CoordMode, Mouse, Screen
SetControlDelay -1
ControlClick, x636 y189,WindowTitle,,,, NA Pos  
I've tried it without the SetControlDelay and CoordModes. Additionally have already tried SetTitleMatchMode, 2.

Any help is much appreciated!
User avatar
YoucefHam
Posts: 372
Joined: 24 Aug 2015, 12:56
Location: Algeria
Contact:

Re: ControlClick Coordinates Ignored

08 Dec 2015, 19:16

illusive101 wrote:Hi there,

Currently using ControlClick to send clicks in the background window of a game. The clicks are successfully being sent in the background but they're ignoring the coordinates specified, so if I move my mouse it will click whereever my mouse is.

Code: Select all

CoordMode, Mouse, Screen
SetControlDelay -1
ControlClick, x636 y189,WindowTitle,,,, NA Pos 
I've tried it without the SetControlDelay and CoordModes. Additionally have already tried SetTitleMatchMode, 2.

Any help is much appreciated!

Hi,
You can use ControlClick like this :

Exp.01

Code: Select all

WindowTitle = My Game Window Title
ControlClick,x636 y189,%WindowTitle%,,,, NA ; Use %Title%
Exp.02

Code: Select all

ControlClick,x636 y189,My Game Window Title,,,, NA ; Put The title directly
Try This:

Code: Select all

CoordMode, Mouse, Screen
SetControlDelay -1
WindowTitle = My Game Window Title ; Change it to the window title
ControlClick, x636 y189,%WindowTitle%,,,, NA 
:wave: There is always more than one way to solve a problem. ;)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 65 guests