Can't get Pixelsearch to work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Zaxeaan
Posts: 1
Joined: 21 May 2022, 12:47

Can't get Pixelsearch to work

Post by Zaxeaan » 21 May 2022, 13:17

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!

User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: Can't get Pixelsearch to work

Post by mikeyww » 21 May 2022, 13:35

See :arrow: PixelSearch.
The decimal or hexadecimal color ID to search for, in Blue-Green-Red (BGR) format.
Try 0x516FE7.

Post Reply

Return to “Ask for Help (v1)”