if service.isShowInputWindow() then
service.click({{"发送|确定|保存|完成|评论|搜索"}})
elseif node.isEditable()
service.execute("粘贴",node)
elseif service.click({{"[接听]"},
{"[挂断&扬声器*]"},
{"挂断电话"}})
elseif service.check("微信",node) or service.check("*头像",node)
service.execute("模拟双击",node)
elseif service.check("*群昵称",node) or service.check("*资料卡",node)
service.execute("操作",node)
elseif service.isSeekBar(node)
service.click({{"%主菜单$50",
"进度>10$50",
}})
else
local txt=tostring(service.getText(node))
if txt:find("%d%d%d%d%d") or txt:find("http") or txt:find("www") then
service.execute("链接",node)
else
service.execute("播放暂停",node)
end
end
return true
来自解说社区客户端 |