love_learn@
because the red color hex 0x0B098F exists in my define coordinates, but not yours
because the red color hex 0x0B098F exists in my define coordinates, but not yours
Quote:
If that color not found it will left click between x and y cords tell color is found
x1=
x2=
y1=
y2=
msgbox, Ctrl+Q to pause
loop
{
PixelSearch, Px, Py, 0, 0, 1024, 768, 0x01155E, 1, Fast
if ErrorLevel
{
random, rand1, %x1%, %x2%
random, rand2, %y1%, %y2%
click %rand1%, %rand2%
}
else
{
click %Px%, %Py%
}
sleep 1000
}
^q::pause
msgbox, Ctrl + Q to pause
loop
{
random, rand, 1, 2
if rand = 1
send a
else
send d
sleep 1000
random, rand, 0, 9
send %rand%
sleep 1000
}
^q::pause