赞
踩
代码如下,脚本采取的是农药的爬塔脚本示范
**@更多基础加autojs交流群698307198喽;
一键加群:点击加群
和更多作者同群交流
//王者 自动爬塔 requestScreenCapture(); for (var i = 1; i > 0; i++) { var 开战 = images.read("./开战.jpg"); //截图并找图 var p = findImage(captureScreen(),开战,{ region: [0, 50], threshold: 0.8 }); if(p){ toast("开战成功"); click( + p.x , + p.y); } else{ print("没找到") } sleep(1000); var 布阵 = images.read("./布阵.jpg"); //截图并找图 var p = findImage(captureScreen(),布阵,{ region: [0, 50], threshold: 0.8 }); if(p){ toast("布阵成功"); click( + p.x , + p.y); } sleep(1000); var 再开战 = images.read("./再开战.jpg"); var p = findImage(captureScreen(),再开战,{ region: [0, 50], threshold: 0.8 }); if(p){ toast("再开战成功"); click( + p.x , + p.y); } sleep(1000); var 挑战 = images.read("./挑战.jpg"); //截图并找图 var p = findImage(captureScreen(),挑战,{ region: [0, 50], threshold: 0.8 }); if(p){ toast("挑战成功"); click( + p.x , + p.y); } sleep(1000); var 确定 = images.read("./确定.jpg"); //截图并找图 var p = findImage(captureScreen(),确定,{ region: [0, 50], threshold: 0.8 }); if(p){ toast("确定成功"); click( + p.x , + p.y); } } //什么,你还要图片?果然是,小孩才做选择,大人说我全都要 完整源码下载:https://www.lanzoui.com/b005gkk5c](https://www.lanzoui.com/b005gkk5c)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。