阴阳师魂十(未完成)脚本

if(!requestScreenCapture()){
toast("请求截图失败");
exit
}
setScreenMetrics(1080,1920);
var isDetected = images.detectsColor(captureScreen(), "#CEC6BD", 1656,790);
if(isDetected){
    sleep (100)
click(1569,922);
}else{
    sleep (100)
click(580,350);
}

会出现这个问题,不知道为什么!

22:37:04.875/E: Wrapped java.lang.NullPointerException: image = null (images.js#62)
at script(images.js:62)
at script(<检测>:6)

22:37:01.864/E: Wrapped java.lang.IllegalArgumentException: x must be < bitmap.width() (images.js#62)
at script(images.js:62)
at script(<检测>:6)

  • 4
    帖子
  • 259
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待