来自:掌上乐园作者: 心灵亮光 时间: 2024-6-5 11:52
if node.isEditable()
local txt=node.text
if txt and txt~="" and not node.isShowingHintText()
service.click({{"发送|确定|保存|发表|评论|回复|完成|发布|登陆|搜索|好|提交"}})service.getEditText()
else
service.execute("粘贴",node)
end
elseif service.isRinging()
service.acceptRingingCall()
elseif service.click({{"[接听]"},
{"[挂断]"},
})
elseif service.isInCalling()
service.endCall()
elseif service.check("*头像",node) or service.check("*群昵称",node) or service.check("*资料卡",node)
if service.execute("操作",node)
return true
else
return service.execute("模拟双击",node)
end
elseif service.isSeekBar(node)
service.click({{"%主菜单$50",
"进度>10$50",
}})
else
if service.execute("链接",node)
return true
else
return service.execute("播放暂停")
end
end
return true