i want to double pixelsearch, and then press enter if it cannot find green or violet
i hope you can help me, thank you so much
Code: Select all
main() {
Global
pixelSearch, greenX, greenY, 30, 51, 759, 592, 0x21C642, 0, Fast RGB
pixelSearch, violetX, violetY, 139, 182, 865, 643, 0x6B29A5, 0, Fast RGB
green := ErrorLevel
violet := ErrorLevel
if green Or violet {
msgbox, no green or violet colors found in the area, we should press enter
sleep, 1500
send, enter
return
}
else {
sleep, 100
return
}
}