Page 1 of 1

Can't get Pixelsearch to work

Posted: 21 May 2022, 13:17
by Zaxeaan
Hello guys, I have used pixelsearch in the past with no problems.

I am currently trying implement pixelsearch into a bigger script, but was having problems. I have written this test script out in hopes to find what I'm doing wrong. I have been racking my brain over this and still can't think of anything :crazy:

Code: Select all

F1::
CoordMode, Pixel, Screen

PixelSearch, Px, Py, 1307, 221, 1533, 878, 0xE76F51, 3, Fast

	if Errorlevel
		Msgbox, ERROR: NO 
	else
		Msgbox, ERROR: YES
	

F2::reload
F3::exitapp
This is my test picture: https://tartanphoenix.com/wp-content/uploads/2020/09/colourpalette.png

Thank you for anyone's help!

Re: Can't get Pixelsearch to work

Posted: 21 May 2022, 13:35
by mikeyww
See :arrow: PixelSearch.
The decimal or hexadecimal color ID to search for, in Blue-Green-Red (BGR) format.
Try 0x516FE7.