-----------神经OCR 全屏查找 找到要的词语 点击------------------------------------------------
local r = ocrEx(0,0,0,0,50,0,0.60,0.30,2.00,true,true)
if r ~= nil then
for i=1,#r do
print(r[i])
if r[i].text == "查看详情" then ----找到要的词语 点击后跳出
print("找到字体",tickCount() - tick)
print(r[i].l) --- l = x1
print(r[i].t) --- t = y1
print(r[i].r) --- r = x2
print(r[i].b) --- b = y2
tap(r[i].l + 10,r[i].t + 10) ---坐标点击偏移X+10 Y+10
sleep(2000)
break ---跳出循环
end
end
end
---------------------------------------------------------------------
|