pixelsearch 2 different colors at 2 areas simultaneously in one script
pixelsearch 2 different colors at 2 areas simultaneously in one script
hello! i want to pixelsearch 2 different colors at 2 areas "simultaneously" in one script (looping), if one color disappears i want to break the loop. Ive tried many solutions but i cant get them to work, any help is appriciated
Re: pixelsearch 2 different colors at 2 areas simultaneously in one script
this is an example of what ive tried (b is just a random)
Code: Select all
y() {
loop {
pixelsearch, bx, by, 287, 235, 368, 312, 0xFF00FF, b, Fast RGB
if (errorlevel = 1) {
break
}
pixelsearch, bx, by, 717, 423, 739, 435, 0x3E3529, b, Fast RGB
if (errorlevel = 1) {
break
}
}
}
Re: pixelsearch 2 different colors at 2 areas simultaneously in one script
In what way does that not work? Have you verified that your PixelSearch commands will result in ErrorLevel 0 when you think they should?