怎樣找到顏色後停止
if(!requestScreenCapture()){
toast("请求截图失败");
exit();
}
var img = captureScreen();
toastLog("开始找色");
while(true){
var point = findColor(img, "#27b849", {
region: [2100, 400, 50, 50],
threshold: 6
});
if(point){
toastLog("x = " + point.x + ", y = " + point.y);
}else{
toastLog("没有找到");
}
}