requestScreenCapture();
while(true){
var img = captureScreen();
var red = findColor(img, "#f46262", {
region: [430, 740, 200, 100],
threshold: 4
});
var blue = findColor(img, "#399eb0", {
region: [430, 740, 200, 100],
threshold: 4
});
if(red){
click(540,1800);
}else if(blue){
click(180,1800);
}else{
click(900,1800);
}
sleep(100);
}
这个适用10801920,我想要22801080的