Pixel searching finding incorrect colour
Posted: 29 Apr 2024, 10:37
I am testing a number of pixel searches and the below test keep registering on black (000000) or rather than the colour I'm searching for. With the variation set to missing (0) I would assume it's not that causing the issue. This seems to happen no matter what colour I have it search for.
Code: Select all
#Requires AutoHotkey v1.1.33.11
CoordMode, mouse, Screen
CoordMode, Pixel, Screen
F1::
Loop {
pixelsearch, Bx, By, 550, 200, 1850, 1450, B97A57, , Fast RGB
if (ErrorLevel = 0) {
Msgbox RED found at coordinates: %Bx%, %By%
}
else {
sleep 2000
}
}