PixelSearch feature request

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
PeteHandsome
Posts: 2
Joined: 04 Dec 2021, 12:37

PixelSearch feature request

Post by PeteHandsome » 04 Dec 2021, 12:47

using pixel search to find a colour in the xy region is great, but can we get an option to output a variable of where the colour was found?
for example being able to PixelSearch an area for a specific colour, then MouseMove or MouseClick to that xy location would be fantastic!



[Mod edit: Topic moved from Wishlist.]

User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: PixelSearch feature request

Post by Xtra » 04 Dec 2021, 15:44

PixelSearch

PixelSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ColorID , Variation, Mode

Parameters
OutputVarX, OutputVarY
The names of the variables in which to store the X and Y coordinates of the first pixel that matches ColorID (if no match is found, the variables are made blank). Coordinates are relative to the active window unless CoordMode was used to change that.

Either or both of these parameters may be left blank, in which case ErrorLevel (see below) can be used to determine whether a match was found.
When a color is found mousemove etc to the OutputVarX, OutputVarY position.

PeteHandsome
Posts: 2
Joined: 04 Dec 2021, 12:37

Re: PixelSearch feature request

Post by PeteHandsome » 22 Dec 2021, 00:47

it's literally the first parameter.
how did i miss that! lol

Post Reply

Return to “Ask for Help (v1)”