I am having trouble with this script, it should check if the color is this redish (AF1A34), and then click on it. I tryed to get the color in a lots of ways, i have it in rgb(175, 26, 52), even i grabbed it with AHK script(0x3419AF), but none of them works for me. :
Code: Select all
SetDefaultMouseSpeed, 0
Finished = 0
Up::
while Finished<1
{
PixelGetColor, OutputVar, 712, 550
if (OutputVar = 0x3419AF)
{
MouseClick, L, 712, 550, 1, 0
}
PixelGetColor, OutputVar, 969, 550
if (OutputVar = 0x3419AF)
{
MouseClick, L, 969, 550, 1, 0
}
}
return
Down::Finished := 1