function 脚本(){
img = captureScreen(); //截图
xy = images.findMultiColors(img,-1,[[-5,-3,-1],[-5,4,-1],[-5,10,-1],[-1,13,-1],[2,11,-328966],[-5,-11,-1],[-5,-16,-1],[-11,-19,-1],[-12,-12,-1],[-12,-4,-1],[-12,4,-1],[-16,11,-1],[-16,1,-1],[-16,-12,-1],[-22,-12,-1],[-28,-19,-1],[-31,-15,-1],[-31,-1,-1],[-30,10,-1],[-32,11,-1],[-24,6,-1],[-24,2,-1],[-25,-8,-1],[-30,-9,-1],[-22,-1,-1],[-22,-18,-1],[1,-12,-1]], {
threshold: [10],
region: [868,88,212,170]
})
if (xy) {
sj=random(-5,5)
click(xy.x+sj,xy.y+sj)
}
sleep(300)
}
requestScreenCapture();
window = floaty.rawWindow(
)
window.开始.click((a)=>{
if(a.text()=="结束"){
线程.interrupt();
a.setText("开始")
return
}
线程=threads.start(function(){
while(true){
脚本()
}
})
a.setText("结束")
})
setInterval(()=>{}, 1000);
window.setPosition(400, 50);
QQ群 568523841