Now i have this game where you have to react to a blue line hitting a green zone, and i'd like to see some examples for how this could be done
I've tried with color coordinates and so on but i cannot seem to get it to work at all
this is what i've tried:
Code: Select all
CoordMode, Pixel, Relative
Z::
loop {
PixelGetColor, color1, 6, 999 ; blue
if(color1 = "0x8F732C") ; if blue (change hex code)
send {space} ; press space
return
}
return
X::ExitApp
Code: Select all
Z::
Loop 50
{
PixelSearch, x, y, 905, 704, 1008, 803, 0x8F732C
If ErrorLevel = 0
Send, {Space}
}
return ; End
X::ExitApp
heres a couple of screenshots of the color change:
https://i.imgur.com/UOv8BDK.png
https://i.imgur.com/COchopK.png
Any help is much appreciated.