Code: Select all
...
GoSub Missioni_GG
...
Missioni_GG:
Loop
{
PixelGetColor, Res, 435, 160, RGB ; Gets the colour at the coordinates (x, y) in the active window
if(Res = 0x384A59){ ; checks if Mission are ON
Sleep 2000
; verify
break ; Terminate the loop
}
Sleep 500
MouseClick, left, 435, 160 ;click ON Mission
}
Return