AI手机网,短视频直播 硬改改机 一键新机 群控软件 刷机定制

 找回密码
 立即注册
搜索
查看: 1906|回复: 1

侠客群控引擎二次开发SDK可用方法大全(持续更新)

[复制链接]
发表于 2019-1-18 16:56:58 | 显示全部楼层 |阅读模式
侠客群控引擎二次开发SDK可用方法大全(持续更新)
  1. 首先,SDK项目需要引用sdk的类库,位置在 安装目录\xcontrol.core.dll 如 C:\Program Files\南宁侠客网络科技有限公司\侠客手机群控引擎\xcontrol.core.dll
  2. 可用方法如下:

  3. public void ShowLogConsole([string title = 插件调试日志])
  4.     AndroidControlSDK.AndroidScript 的成员

  5. 摘要:
  6. 显示日志控制台

  7. public string Click(int x, int y)
  8.     AndroidControlSDK.AndroidScript 的成员

  9. 摘要:
  10. 点击

  11. 参数:
  12. x: x坐标
  13. y: y坐标

  14. 返回结果:

  15. public abstract string Name()
  16.     AndroidControlSDK.AndroidScript 的成员

  17. 摘要:
  18. 模块名称

  19. 返回结果:

  20. public abstract string Description()
  21.     AndroidControlSDK.AndroidScript 的成员

  22. 摘要:
  23. 模块描述

  24. 返回结果:

  25. public abstract void RunScript()
  26. AndroidControlSDK.AndroidScript 的成员

  27. 摘要:
  28. 模块执行过程

  29. 返回结果:

  30. public string Drag(int startx, int starty, int endx, int endy)
  31.     AndroidControlSDK.AndroidScript 的成员

  32. 摘要:
  33. 拖动

  34. 参数:
  35. startx: 起始x坐标
  36. starty: 起始y坐标
  37. endx: 结束x坐标
  38. endy: 结束y坐标

  39. 返回结果:

  40. public string FindAndCLickAndClearObj(string text, [int index = 0])
  41.     AndroidControlSDK.AndroidScript 的成员

  42. 摘要:
  43. 查找并点击并清空(精确匹配模式)

  44. 参数:
  45. text: 资源id或类名或特征字符
  46. index: 索引,表示作用于匹配的第几个结果

  47. 返回结果:

  48. public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
  49.     AndroidControlSDK.AndroidScript 的成员

  50. 摘要:
  51. 查找并点击并清空(正则模式)

  52. 参数:
  53. regex: 资源id或类名或特征字符(支持正则表达式)
  54. index: 索引,表示作用于匹配的第几个结果

  55. 返回结果:

  56. public string FindAndCLickObj(string text, [int index = 0])
  57.     AndroidControlSDK.AndroidScript 的成员

  58. 摘要:
  59. 查找并点击元素(精确匹配模式)

  60. 参数:
  61. text: 资源id或类名或特征字符
  62. index: 索引,表示作用于匹配的第几个结果

  63. 返回结果:

  64. public string FindAndCLickObjByRegex(string regex, [int index = 0])
  65.     AndroidControlSDK.AndroidScript 的成员

  66. 摘要:
  67. 查找并点击元素(基于正则表达式)

  68. 参数:
  69. regex: 资源id或类名或特征字符(支持正则表达式)
  70. index: 索引,表示作用于匹配的第几个结果

  71. 返回结果:

  72. public string FindAndInutText(string name, string text, [int index = 0])
  73.     AndroidControlSDK.AndroidScript 的成员

  74. 摘要:
  75. 查找并赋值(一般用于文本框)

  76. 参数:
  77. name: 资源id或类名或特征字符(支持正则表达式)
  78. text: 输入的文本
  79. index: 索引,表示作用于匹配的第几个结果

  80. 返回结果:

  81. public string FindObj(string text)
  82.     AndroidControlSDK.AndroidScript 的成员

  83. 摘要:
  84. 精确匹配查找元素

  85. 参数:
  86. text: 资源id或类名或特征字符

  87. 返回结果:

  88. public string FindObjByRegex(string regex)
  89.     AndroidControlSDK.AndroidScript 的成员

  90. 摘要:
  91. 基于正则查找元素

  92. 参数:
  93. regex: 资源id或类名或特征字符(支持正则表达式)

  94. 返回结果:

  95. public string GetLoction()
  96.     AndroidControlSDK.AndroidScript 的成员

  97. 摘要:
  98. 读取手机的GPS坐标

  99. 返回结果:

  100. public System.Collections.Generic.List<string> GetUiTexts(string regex)
  101.     AndroidControlSDK.AndroidScript 的成员

  102. 摘要:
  103. 获取元素文本

  104. 参数:
  105. regex: 资源id或类名或特征字符(支持正则表达式)

  106. 返回结果:

  107. public void InputText(string text)
  108.     AndroidControlSDK.AndroidScript 的成员

  109. 摘要:
  110. 通过输入法输入文本

  111. 参数:
  112. text: 要输入的内容

  113. public void OpenUserChat(string userid)
  114.     AndroidControlSDK.AndroidScript 的成员

  115. 摘要:
  116. 打开用户对话界面

  117. 参数:
  118. userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id

  119. public string PressKeyCode(int keycode)
  120.     AndroidControlSDK.AndroidScript 的成员

  121. 摘要:
  122. 发送按键

  123. 参数:
  124. keycode: 按键代码(可参考安卓keyevent)

  125. 返回结果:

  126. public string RunAdb(string adbcmd)
  127.     AndroidControlSDK.AndroidScript 的成员

  128. 摘要:
  129. 在手机上执行执行ADB命令

  130. 参数:
  131. adbcmd: adb命令

  132. 返回结果:

  133. public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
  134.     AndroidControlSDK.AndroidScript 的成员

  135. 摘要:
  136. 发送Intnet

  137. 参数:
  138. dic: key value形式的intnet值

  139. 返回结果:

  140. public void SetAirPlane(bool ison)
  141.     AndroidControlSDK.AndroidScript 的成员

  142. 摘要:
  143. 设置飞行模式

  144. 参数:
  145. ison: 是否开启飞行模式

  146. public void SetImei(string imei)
  147.     AndroidControlSDK.AndroidScript 的成员

  148. public void SetLoction(string loction)
  149.     AndroidControlSDK.AndroidScript 的成员

  150. 摘要:
  151. 设置手机的GPS坐标

  152. 参数:
  153. loction:

  154. public void SetMacAddress(string macaddress)
  155.     AndroidControlSDK.AndroidScript 的成员

  156. public void SetSid(string sid)
  157.     AndroidControlSDK.AndroidScript 的成员

  158. public void SetSim(string sim)
  159.     AndroidControlSDK.AndroidScript 的成员

  160. public void ShowStatus(string status)
  161.     AndroidControlSDK.AndroidScript 的成员

  162. 摘要:
  163. 显示脚本状态

  164. 参数:
  165. status: 状态

  166. public void ShowStatus(string status, System.Windows.Media.Color color)
  167.     AndroidControlSDK.AndroidScript 的成员

  168. 摘要:
  169. 显示脚本状态

  170. 参数:
  171. status: 状态
  172. color: 文字颜色

  173. public void StartWeixin()
  174.     AndroidControlSDK.AndroidScript 的成员

  175. 摘要:
  176. 进入微信

  177. public void YaoYiXia()
  178.     AndroidControlSDK.AndroidScript 的成员

  179. 摘要:
  180. 摇一摇
复制代码


 楼主| 发表于 2019-1-18 16:57:24 | 显示全部楼层
关闭wifi可使用 RunAdb("su -c svc wifi disable");,同理,开启wifi可使用RunAdb("su -c svc wifi enable");,想要插件执行adb命令建议先把手机连接到电脑上,然后使用adb shell进入环境,再测试相应的adb命令,群控执行RunAdb就是在adb shell环境下执行的。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

技术交流售后群

QQ|小黑屋|手机版|站点找错-建议|AI手机网 |Sitemap



GMT+8, 2024-4-18 23:06 , Processed in 0.145754 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表