首页 > 学院 > 开发设计 > 正文

群控系统二次开发SDK 可用方法大全

2019-11-09 16:39:19
字体:
来源:转载
供稿:网友

安卓java手机群控引擎二次开发SDK可用方法大全(持续更新)

的插件SDK能提供很强大的功能(所有官方使用的方法都有提供)

这篇文章是详细介绍所有SDK可调用的方法

首先,SDK项目需要引用sdk的类库,位置在 安装目录/xcontrol.core.dll 如 C:/PRogram Files/南宁侠客网络科技有限公司/侠客手机群控引擎/xcontrol.core.dll

可用方法如下:

 
12345public void ShowLogConsole([string title = 插件调试日志])    AndroidControlSDK.AndroidScript 的成员 摘要:显示日志控制台

 

 
1234567891011public string Click(int x, int y)    AndroidControlSDK.AndroidScript 的成员 摘要:点击 参数:x: x坐标y: y坐标 返回结果:

 

 
1234567public abstract string Name()    AndroidControlSDK.AndroidScript 的成员 摘要:模块名称 返回结果:

 

 
1234567public abstract string Description()    AndroidControlSDK.AndroidScript 的成员 摘要:模块描述 返回结果:

 

 
1234567public abstract void RunScript()AndroidControlSDK.AndroidScript 的成员 摘要:模块执行过程 返回结果:

 

 
12345678910111213public string Drag(int startx, int starty, int endx, int endy)    AndroidControlSDK.AndroidScript 的成员 摘要:拖动 参数:startx: 起始x坐标starty: 起始y坐标endx: 结束x坐标endy: 结束y坐标 返回结果:

 

 
1234567891011public string FindAndCLickAndClearObj(string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击并清空(精确匹配模式) 参数:text: 资源id或类名或特征字符index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击并清空(正则模式) 参数:regex: 资源id或类名或特征字符(支持正则表达式)index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickObj(string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击元素(精确匹配模式) 参数:text: 资源id或类名或特征字符index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickObjByRegex(string regex, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击元素(基于正则表达式) 参数:regex: 资源id或类名或特征字符(支持正则表达式)index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
123456789101112public string FindAndInutText(string name, string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并赋值(一般用于文本框) 参数:name: 资源id或类名或特征字符(支持正则表达式)text: 输入的文本index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
12345678910public string FindObj(string text)    AndroidControlSDK.AndroidScript 的成员 摘要:精确匹配查找元素 参数:text: 资源id或类名或特征字符 返回结果:

 

 
12345678910public string FindObjByRegex(string regex)    AndroidControlSDK.AndroidScript 的成员 摘要:基于正则查找元素 参数:regex: 资源id或类名或特征字符(支持正则表达式) 返回结果:

 

 
1234567public string GetLoction()    AndroidControlSDK.AndroidScript 的成员 摘要:读取手机的GPS坐标 返回结果:

 

 
12345678910public System.Collections.Generic.List<string> GetUiTexts(string regex)    AndroidControlSDK.AndroidScript 的成员 摘要:获取元素文本 参数:regex: 资源id或类名或特征字符(支持正则表达式) 返回结果:

 

 
12345678public void InputText(string text)    AndroidControlSDK.AndroidScript 的成员 摘要:通过输入法输入文本 参数:text: 要输入的内容

 

 
12345678public void OpenUserChat(string userid)    AndroidControlSDK.AndroidScript 的成员 摘要:打开用户对话界面 参数:userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id

 

 
12345678910public string PressKeyCode(int keycode)    AndroidControlSDK.AndroidScript 的成员 摘要:发送按键 参数:keycode: 按键代码(可参考安卓keyevent) 返回结果:

 

 
12345678910public string RunAdb(string adbcmd)    AndroidControlSDK.AndroidScript 的成员 摘要:在手机上执行执行ADB命令 参数:adbcmd: adb命令 返回结果:

 

 
12345678910public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)    AndroidControlSDK.AndroidScript 的成员 摘要:发送Intnet 参数:dic: key value形式的intnet值 返回结果:

 

 
12345678public void SetAirPlane(bool ison)    AndroidControlSDK.AndroidScript 的成员 摘要:设置飞行模式 参数:ison: 是否开启飞行模式

 

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

 

 
12345678public void SetLoction(string loction)    AndroidControlSDK.AndroidScript 的成员 摘要:设置手机的GPS坐标 参数:loction:

 

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

 

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

 

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

 

 
12345678public void ShowStatus(string status)    AndroidControlSDK.AndroidScript 的成员 摘要:显示脚本状态 参数:status: 状态

 

 
123456789public void ShowStatus(string status, System.Windows.Media.Color color)    AndroidControlSDK.AndroidScript 的成员 摘要:显示脚本状态 参数:status: 状态color: 文字颜色

 

 

如这篇文章所示 http://www.xiake.net/blog/archives/1 侠客的插件SDK能提供很强大的功能(所有官方使用的方法都有提供)

这篇文章是详细介绍所有SDK可调用的方法

首先,SDK项目需要引用sdk的类库,位置在 安装目录/xcontrol.core.dll 如 C:/Program Files/南宁侠客网络科技有限公司/侠客手机群控引擎/xcontrol.core.dll

可用方法如下:

 
12345public void ShowLogConsole([string title = 插件调试日志])    AndroidControlSDK.AndroidScript 的成员 摘要:显示日志控制台

 

 
1234567891011public string Click(int x, int y)    AndroidControlSDK.AndroidScript 的成员 摘要:点击 参数:x: x坐标y: y坐标 返回结果:

 

 
1234567public abstract string Name()    AndroidControlSDK.AndroidScript 的成员 摘要:模块名称 返回结果:

 

 
1234567public abstract string Description()    AndroidControlSDK.AndroidScript 的成员 摘要:模块描述 返回结果:

 

 
1234567public abstract void RunScript()AndroidControlSDK.AndroidScript 的成员 摘要:模块执行过程 返回结果:

 

 
12345678910111213public string Drag(int startx, int starty, int endx, int endy)    AndroidControlSDK.AndroidScript 的成员 摘要:拖动 参数:startx: 起始x坐标starty: 起始y坐标endx: 结束x坐标endy: 结束y坐标 返回结果:

 

 
1234567891011public string FindAndCLickAndClearObj(string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击并清空(精确匹配模式) 参数:text: 资源id或类名或特征字符index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击并清空(正则模式) 参数:regex: 资源id或类名或特征字符(支持正则表达式)index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickObj(string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击元素(精确匹配模式) 参数:text: 资源id或类名或特征字符index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
1234567891011public string FindAndCLickObjByRegex(string regex, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并点击元素(基于正则表达式) 参数:regex: 资源id或类名或特征字符(支持正则表达式)index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
123456789101112public string FindAndInutText(string name, string text, [int index = 0])    AndroidControlSDK.AndroidScript 的成员 摘要:查找并赋值(一般用于文本框) 参数:name: 资源id或类名或特征字符(支持正则表达式)text: 输入的文本index: 索引,表示作用于匹配的第几个结果 返回结果:

 

 
12345678910public string FindObj(string text)    AndroidControlSDK.AndroidScript 的成员 摘要:精确匹配查找元素 参数:text: 资源id或类名或特征字符 返回结果:

 

 
12345678910public string FindObjByRegex(string regex)    AndroidControlSDK.AndroidScript 的成员 摘要:基于正则查找元素 参数:regex: 资源id或类名或特征字符(支持正则表达式) 返回结果:

 

 
1234567public string GetLoction()    AndroidControlSDK.AndroidScript 的成员 摘要:读取手机的GPS坐标 返回结果:

 

 
12345678910public System.Collections.Generic.List<string> GetUiTexts(string regex)    AndroidControlSDK.AndroidScript 的成员 摘要:获取元素文本 参数:regex: 资源id或类名或特征字符(支持正则表达式) 返回结果:

 

 
12345678public void InputText(string text)    AndroidControlSDK.AndroidScript 的成员 摘要:通过输入法输入文本 参数:text: 要输入的内容

 

 
12345678public void OpenUserChat(string userid)    AndroidControlSDK.AndroidScript 的成员 摘要:打开用户对话界面 参数:userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id

 

 
12345678910public string PressKeyCode(int keycode)    AndroidControlSDK.AndroidScript 的成员 摘要:发送按键 参数:keycode: 按键代码(可参考安卓keyevent) 返回结果:

 

 
12345678910public string RunAdb(string adbcmd)    AndroidControlSDK.AndroidScript 的成员 摘要:在手机上执行执行ADB命令 参数:adbcmd: adb命令 返回结果:

 

 
12345678910public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)    AndroidControlSDK.AndroidScript 的成员 摘要:发送Intnet 参数:dic: key value形式的intnet值 返回结果:

 

 
12345678public void SetAirPlane(bool ison)    AndroidControlSDK.AndroidScript 的成员 摘要:设置飞行模式 参数:ison: 是否开启飞行模式

 

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

 

 
12345678public void SetLoction(string loction)    AndroidControlSDK.AndroidScript 的成员 摘要:设置手机的GPS坐标 参数:loction:

 

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

 

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

 

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

 

 
12345678public void ShowStatus(string status)    AndroidControlSDK.AndroidScript 的成员 摘要:显示脚本状态 参数:status: 状态

 

 
123456789public void ShowStatus(string status, System.Windows.Media.Color color)    AndroidControlSDK.AndroidScript 的成员 摘要:显示脚本状态 参数:status: 状态color: 文字颜色

 

 
12345public void StartWeixin()    AndroidControlSDK.AndroidScript 的成员 摘要:进入微信

 

 
12345public void YaoYiXia()    AndroidControlSDK.AndroidScript 的成员 摘要:摇一摇

 

 

 

12345public void StartWeixin()    AndroidControlSDK.AndroidScript 的成员 摘要:进入微信

 

 
12345public void YaoYiXia()    AndroidControlSDK.AndroidScript 的成员 摘要:摇一摇

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表