|
侠客群控引擎二次开发SDK可用方法大全(持续更新)
- 首先,SDK项目需要引用sdk的类库,位置在 安装目录\xcontrol.core.dll 如 C:\Program Files\南宁侠客网络科技有限公司\侠客手机群控引擎\xcontrol.core.dll
- 可用方法如下:
- public void ShowLogConsole([string title = 插件调试日志])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 显示日志控制台
- public string Click(int x, int y)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 点击
- 参数:
- x: x坐标
- y: y坐标
- 返回结果:
- public abstract string Name()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 模块名称
- 返回结果:
- public abstract string Description()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 模块描述
- 返回结果:
- public abstract void RunScript()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 模块执行过程
- 返回结果:
- public string Drag(int startx, int starty, int endx, int endy)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 拖动
- 参数:
- startx: 起始x坐标
- starty: 起始y坐标
- endx: 结束x坐标
- endy: 结束y坐标
- 返回结果:
- public string FindAndCLickAndClearObj(string text, [int index = 0])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 查找并点击并清空(精确匹配模式)
- 参数:
- text: 资源id或类名或特征字符
- index: 索引,表示作用于匹配的第几个结果
- 返回结果:
- public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 查找并点击并清空(正则模式)
- 参数:
- regex: 资源id或类名或特征字符(支持正则表达式)
- index: 索引,表示作用于匹配的第几个结果
- 返回结果:
- public string FindAndCLickObj(string text, [int index = 0])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 查找并点击元素(精确匹配模式)
- 参数:
- text: 资源id或类名或特征字符
- index: 索引,表示作用于匹配的第几个结果
- 返回结果:
- public string FindAndCLickObjByRegex(string regex, [int index = 0])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 查找并点击元素(基于正则表达式)
- 参数:
- regex: 资源id或类名或特征字符(支持正则表达式)
- index: 索引,表示作用于匹配的第几个结果
- 返回结果:
- public string FindAndInutText(string name, string text, [int index = 0])
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 查找并赋值(一般用于文本框)
- 参数:
- name: 资源id或类名或特征字符(支持正则表达式)
- text: 输入的文本
- index: 索引,表示作用于匹配的第几个结果
- 返回结果:
- public string FindObj(string text)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 精确匹配查找元素
- 参数:
- text: 资源id或类名或特征字符
- 返回结果:
- public string FindObjByRegex(string regex)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 基于正则查找元素
- 参数:
- regex: 资源id或类名或特征字符(支持正则表达式)
- 返回结果:
- public string GetLoction()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 读取手机的GPS坐标
- 返回结果:
- public System.Collections.Generic.List<string> GetUiTexts(string regex)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 获取元素文本
- 参数:
- regex: 资源id或类名或特征字符(支持正则表达式)
- 返回结果:
- public void InputText(string text)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 通过输入法输入文本
- 参数:
- text: 要输入的内容
- public void OpenUserChat(string userid)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 打开用户对话界面
- 参数:
- userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id
- public string PressKeyCode(int keycode)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 发送按键
- 参数:
- keycode: 按键代码(可参考安卓keyevent)
- 返回结果:
- public string RunAdb(string adbcmd)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 在手机上执行执行ADB命令
- 参数:
- adbcmd: adb命令
- 返回结果:
- public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 发送Intnet
- 参数:
- dic: key value形式的intnet值
- 返回结果:
- public void SetAirPlane(bool ison)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 设置飞行模式
- 参数:
- ison: 是否开启飞行模式
- public void SetImei(string imei)
- AndroidControlSDK.AndroidScript 的成员
- public void SetLoction(string loction)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 设置手机的GPS坐标
- 参数:
- loction:
- public void SetMacAddress(string macaddress)
- AndroidControlSDK.AndroidScript 的成员
- public void SetSid(string sid)
- AndroidControlSDK.AndroidScript 的成员
- public void SetSim(string sim)
- AndroidControlSDK.AndroidScript 的成员
- public void ShowStatus(string status)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 显示脚本状态
- 参数:
- status: 状态
- public void ShowStatus(string status, System.Windows.Media.Color color)
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 显示脚本状态
- 参数:
- status: 状态
- color: 文字颜色
- public void StartWeixin()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 进入微信
- public void YaoYiXia()
- AndroidControlSDK.AndroidScript 的成员
- 摘要:
- 摇一摇
复制代码
|
|