[序章]解析命令库
- Import "XmlEx.mqle"
- //------------------------------------------------------------
- Do
- Call XmlEx.点击 ("收藏","android.widget.TextView","")'点击(Text特征,Class特征,Desc特征) 忽略参数写""
- Delay 200
- Call XmlEx.点击 ("全部","android.widget.TextView","")'点击(Text特征,Class特征,Desc特征) 忽略参数写""
- Delay 200
- Loop
- //------------------------------------------------------------
- Dim Var1,Var2
- Var1 = XmlEx.遍历坐标("按键精灵","android.widget.TextView","") '例子1
- For i = 0 To UBOUND(Var1)
- TracePrint "=============================="
- Var2 = Var1(i)
- TracePrint "节点Text:"& Var2["Text"]
- TracePrint "节点Class:"& Var2["Class"]
- TracePrint "节点坐标--坐标x:"&Var2["x"]&",坐标y:"&Var2["y"]
- Next
- Var1 = XmlEx.遍历坐标("","android.widget.TextView","") '例子2 忽略参数写""
- For i = 0 To UBOUND(Var1)
- TracePrint "=============================="
- Var2 = Var1(i)
- TracePrint "节点Text:"& Var2["Text"]
- TracePrint "节点Class:"& Var2["Class"]
- TracePrint "节点坐标--坐标x:"&Var2["x"]&",坐标y:"&Var2["y"]
- Next
- //------------------------------------------------------------
- TracePrint XmlEx.判断节点是否存在("按键精灵","android.widget.TextView","")
复制代码
- 插件下载:[放按键安装目录下CommandLib文件内]
- XmlEx.rar (, 下载次数:1137)
[中篇]XML解析exe(直接分析出界面元素后 直接复制使用 无需一个个查看抓抓. ...编写中)