ControlClick using wrong coordinates Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
wlagos1992

ControlClick using wrong coordinates

16 Jan 2017, 01:33

Hello my control click is working perfectly fine minus its using coordinates based on my screen not on the inactive window it should be using. Anyone have suggestions?

Code: Select all


Coordmode, Mouse, 1
Random, Col1, 596, 627
Random, Col2, 638, 669
Random, Col3, 680, 711
Random, Col4, 722, 753

Random, Row1, 244, 275
Random, Row2, 280, 311
Random, Row3, 316, 347
Random, Row4, 352, 383
Random, Row5, 388, 419
Random, Row6, 424, 455
Random, Row7, 460, 491


SetControlDelay -1
ControlClick, x%Col1% y%Row1%, %Game%,
it has more clicks to it but this is all you really need to see to see where the problem is
Helgef
Posts: 4031
Joined: 17 Jul 2016, 01:02
Contact:

Re: ControlClick using wrong coordinates

16 Jan 2017, 03:35

CoordMode does not affect ControlClick.
You can specify coordinate in one of two ways for ControlClick:
ControlClick Control-or-Pos wrote: Mode 1 (Position): Specify the X and Y coordinates relative to the target window's upper left corner.
ControlClick options wrote: Xn: Specify for n the X position to click at, relative to the control's upper left corner.
Yn: Specify for n the Y position to click at, relative to the control's upper left corner.
ozzii
Posts: 327
Joined: 30 Oct 2013, 06:04

Re: ControlClick using wrong coordinates

17 Jan 2017, 03:12

Sorry, error in my copy/paste.
I've copied one line up.

Return to “Ask For Help”

Who is online

Users browsing this forum: Anthrazite, Bing [Bot], Google [Bot], malcev, Timmy347 and 225 guests