var 获取坐标 = {};
setScreenMetrics(1080, 1920);
if (!requestScreenCapture()) {
toastLog('请求截图权限失败,请重新尝试,或检测是否打开对应权限')
exit()
}
获取坐标.当前坐标 = function (){
var img = captureScreen()
var imgzbx = images.clip(img, 56, 330, 217, 40)
//var imgzby = images.clip(img,,,,)
//识别坐标
let zbx = gmlkit.ocr(imgzbx, "num");
//let zby = gmlkit.ocr(imgzby, "num");
var zb = zbx.text
var zbb = zb.split(", ")
var x = zbb[0]
var y = zbb[1]
return toast(x+y)
};
module.exports = 获取坐标;
哪里出错了