首先感谢QQ:5845993(若非拿到定制后不付款,本命令库将无法作为共享贴分享)旧版本下载:(V1.0-2.0)
命令库分享----安卓按键----节点功能[序章]本版本为V3.0,目前最新版本为V5.0
=============================================================
新版本例子:
- Import "XmlExV3.mqle"
- TracePrint Time()
- Dim Var1,Var2,是否存在
- //遍历例子
- Var1 = XmlExV3.遍历节点 ("系统应用","","","") '(Text特征,id特征,Class特征,Desc特征)参数可乱序 可只写字眼
- For i = 0 To UBOUND(Var1)
- //同时支持输出"checkable","checked","clickable","enabled","focusable","focused","scrollable","long-clickable","password","selected","bounds"
- TracePrint "============================"
- Var2 = Var1(i)
- TracePrint "节点resource-id:"& Var2["resource-id"]
- TracePrint "节点class:"& Var2["class"]
- TracePrint "节点text:"& Var2["text"]
- TracePrint "节点package:"& Var2["package"]
- TracePrint "节点content-desc:"& Var2["content-desc"]
- TracePrint "坐标x:"& Var2["left"]+(Var2["right"]-Var2["left"])/2
- TracePrint "坐标y:"& Var2["top"]+(Var2["bottom"]-Var2["top"])/2
- Next
- TracePrint Time()
- //判断+是否点击例子
- 是否存在 = XmlExV3.判断节点是否存在 ("系统应用","","","",1)'存在返回1,不存在返回0|第五参数写1则为点击
- TracePrint 是否存在
- TracePrint Time()
复制代码新版本更新说明:[鄙视破解了还有改成自己联系方式的]
新版本下载:
- XmlExV3.rar (, 下载次数:666)