color = {
{{0x7efdfd, 1, 0, 0x66f0f7, 2, 0, 0x93eff7, 3, 0, 0x8be3e9}, 96, 226, 694, 641, 1282},
{{0x85fcfc, 1, 0, 0x55f4fa, 2, 0, 0x87ecfa, 3, 0, 0x6ee1f1}, 96, 226, 694, 641, 1282},
{{0x6df7fe, 1, 0, 0x59f9f9, 2, 0, 0x81eff9, 3, 0, 0x7ae0f0}, 96, 226, 694, 641, 1282}
}
function colortep(t)
for k, v in pairs(t) do
x,y = screen.findColor(v[1],v[2],v[3],v[4],v[5],v[6])
if x ~= -1 and y ~= -1 then
sys.log(string.format("找到%s点双击坐标",k))
touch.tap(x, y)
sys.sleep(100)
touch.tap(x, y)
sys.sleep(200)
touch.tap(0, 0)
sys.sleep(200)
break;
end
end
end
function main()
colortep(color)
end
问 关于多组颜色,找到其中一组即双击的请教。