侠客群控引擎二次开发SDK可用方法大全(持续更新)
如这篇文章所示 http://www.xiake.net/blog/archives/1 侠客的插件SDK能提供很强大的功能(所有官方使用的方法都有提供)
这篇文章是详细介绍所有SDK可调用的方法
首先,SDK项目需要引用sdk的类库,位置在 安装目录\xcontrol.core.dll 如 C:\Program Files\南宁侠客网络科技有限公司\侠客手机群控引擎\xcontrol.core.dll
可用方法如下:
|
1
2
3
4
5
|
public void ShowLogConsole([string title = 插件调试日志])
AndroidControlSDK.AndroidScript 的成员
摘要:
显示日志控制台
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string Click(int x, int y)
AndroidControlSDK.AndroidScript 的成员
摘要:
点击
参数:
x: x坐标
y: y坐标
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract string Name()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块名称
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract string Description()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块描述
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract void RunScript()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块执行过程
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
public string Drag(int startx, int starty, int endx, int endy)
AndroidControlSDK.AndroidScript 的成员
摘要:
拖动
参数:
startx: 起始x坐标
starty: 起始y坐标
endx: 结束x坐标
endy: 结束y坐标
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickAndClearObj(string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击并清空(精确匹配模式)
参数:
text: 资源id或类名或特征字符
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击并清空(正则模式)
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickObj(string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击元素(精确匹配模式)
参数:
text: 资源id或类名或特征字符
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickObjByRegex(string regex, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击元素(基于正则表达式)
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
12
|
public string FindAndInutText(string name, string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并赋值(一般用于文本框)
参数:
name: 资源id或类名或特征字符(支持正则表达式)
text: 输入的文本
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string FindObj(string text)
AndroidControlSDK.AndroidScript 的成员
摘要:
精确匹配查找元素
参数:
text: 资源id或类名或特征字符
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string FindObjByRegex(string regex)
AndroidControlSDK.AndroidScript 的成员
摘要:
基于正则查找元素
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
返回结果:
|
|
1
2
3
4
5
6
7
|
public string GetLoction()
AndroidControlSDK.AndroidScript 的成员
摘要:
读取手机的GPS坐标
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public System.Collections.Generic.List<string> GetUiTexts(string regex)
AndroidControlSDK.AndroidScript 的成员
摘要:
获取元素文本
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
返回结果:
|
|
1
2
3
4
5
6
7
8
|
public void InputText(string text)
AndroidControlSDK.AndroidScript 的成员
摘要:
通过输入法输入文本
参数:
text: 要输入的内容
|
|
1
2
3
4
5
6
7
8
|
public void OpenUserChat(string userid)
AndroidControlSDK.AndroidScript 的成员
摘要:
打开用户对话界面
参数:
userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id
|
|
1
2
3
4
5
6
7
8
9
10
|
public string PressKeyCode(int keycode)
AndroidControlSDK.AndroidScript 的成员
摘要:
发送按键
参数:
keycode: 按键代码(可参考安卓keyevent)
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string RunAdb(string adbcmd)
AndroidControlSDK.AndroidScript 的成员
摘要:
在手机上执行执行ADB命令
参数:
adbcmd: adb命令
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
AndroidControlSDK.AndroidScript 的成员
摘要:
发送Intnet
参数:
dic: key value形式的intnet值
返回结果:
|
|
1
2
3
4
5
6
7
8
|
public void SetAirPlane(bool ison)
AndroidControlSDK.AndroidScript 的成员
摘要:
设置飞行模式
参数:
ison: 是否开启飞行模式
|
|
1
2
|
public void SetImei(string imei)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
3
4
5
6
7
8
|
public void SetLoction(string loction)
AndroidControlSDK.AndroidScript 的成员
摘要:
设置手机的GPS坐标
参数:
loction:
|
|
1
2
|
public void SetMacAddress(string macaddress)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
|
public void SetSid(string sid)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
|
public void SetSim(string sim)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
3
4
5
6
7
8
|
public void ShowStatus(string status)
AndroidControlSDK.AndroidScript 的成员
摘要:
显示脚本状态
参数:
status: 状态
|
|
1
2
3
4
5
6
7
8
9
|
public 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
可用方法如下:
|
1
2
3
4
5
|
public void ShowLogConsole([string title = 插件调试日志])
AndroidControlSDK.AndroidScript 的成员
摘要:
显示日志控制台
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string Click(int x, int y)
AndroidControlSDK.AndroidScript 的成员
摘要:
点击
参数:
x: x坐标
y: y坐标
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract string Name()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块名称
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract string Description()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块描述
返回结果:
|
|
1
2
3
4
5
6
7
|
public abstract void RunScript()
AndroidControlSDK.AndroidScript 的成员
摘要:
模块执行过程
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
public string Drag(int startx, int starty, int endx, int endy)
AndroidControlSDK.AndroidScript 的成员
摘要:
拖动
参数:
startx: 起始x坐标
starty: 起始y坐标
endx: 结束x坐标
endy: 结束y坐标
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickAndClearObj(string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击并清空(精确匹配模式)
参数:
text: 资源id或类名或特征字符
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击并清空(正则模式)
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickObj(string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击元素(精确匹配模式)
参数:
text: 资源id或类名或特征字符
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
|
public string FindAndCLickObjByRegex(string regex, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并点击元素(基于正则表达式)
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
11
12
|
public string FindAndInutText(string name, string text, [int index = 0])
AndroidControlSDK.AndroidScript 的成员
摘要:
查找并赋值(一般用于文本框)
参数:
name: 资源id或类名或特征字符(支持正则表达式)
text: 输入的文本
index: 索引,表示作用于匹配的第几个结果
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string FindObj(string text)
AndroidControlSDK.AndroidScript 的成员
摘要:
精确匹配查找元素
参数:
text: 资源id或类名或特征字符
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string FindObjByRegex(string regex)
AndroidControlSDK.AndroidScript 的成员
摘要:
基于正则查找元素
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
返回结果:
|
|
1
2
3
4
5
6
7
|
public string GetLoction()
AndroidControlSDK.AndroidScript 的成员
摘要:
读取手机的GPS坐标
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public System.Collections.Generic.List<string> GetUiTexts(string regex)
AndroidControlSDK.AndroidScript 的成员
摘要:
获取元素文本
参数:
regex: 资源id或类名或特征字符(支持正则表达式)
返回结果:
|
|
1
2
3
4
5
6
7
8
|
public void InputText(string text)
AndroidControlSDK.AndroidScript 的成员
摘要:
通过输入法输入文本
参数:
text: 要输入的内容
|
|
1
2
3
4
5
6
7
8
|
public void OpenUserChat(string userid)
AndroidControlSDK.AndroidScript 的成员
摘要:
打开用户对话界面
参数:
userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id
|
|
1
2
3
4
5
6
7
8
9
10
|
public string PressKeyCode(int keycode)
AndroidControlSDK.AndroidScript 的成员
摘要:
发送按键
参数:
keycode: 按键代码(可参考安卓keyevent)
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string RunAdb(string adbcmd)
AndroidControlSDK.AndroidScript 的成员
摘要:
在手机上执行执行ADB命令
参数:
adbcmd: adb命令
返回结果:
|
|
1
2
3
4
5
6
7
8
9
10
|
public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
AndroidControlSDK.AndroidScript 的成员
摘要:
发送Intnet
参数:
dic: key value形式的intnet值
返回结果:
|
|
1
2
3
4
5
6
7
8
|
public void SetAirPlane(bool ison)
AndroidControlSDK.AndroidScript 的成员
摘要:
设置飞行模式
参数:
ison: 是否开启飞行模式
|
|
1
2
|
public void SetImei(string imei)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
3
4
5
6
7
8
|
public void SetLoction(string loction)
AndroidControlSDK.AndroidScript 的成员
摘要:
设置手机的GPS坐标
参数:
loction:
|
|
1
2
|
public void SetMacAddress(string macaddress)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
|
public void SetSid(string sid)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
|
public void SetSim(string sim)
AndroidControlSDK.AndroidScript 的成员
|
|
1
2
3
4
5
6
7
8
|
public void ShowStatus(string status)
AndroidControlSDK.AndroidScript 的成员
摘要:
显示脚本状态
参数:
status: 状态
|
|
1
2
3
4
5
6
7
8
9
|
public void ShowStatus(string status, System.Windows.Media.Color color)
AndroidControlSDK.AndroidScript 的成员
摘要:
显示脚本状态
参数:
status: 状态
color: 文字颜色
|
|
1
2
3
4
5
|
public void StartWeixin()
AndroidControlSDK.AndroidScript 的成员
摘要:
进入微信
|
|
1
2
3
4
5
|
public void YaoYiXia()
AndroidControlSDK.AndroidScript 的成员
摘要:
摇一摇
|
|
1
2
3
4
5
|
public void StartWeixin()
AndroidControlSDK.AndroidScript 的成员
摘要:
进入微信
|
|
1
2
3
4
5
|
public void YaoYiXia()
AndroidControlSDK.AndroidScript 的成员
摘要:
摇一摇
|
侠客群控引擎二次开发SDK可用方法大全(持续更新)的更多相关文章
- iOS:开发常用GitHub开源项目(持续更新)
IOS开发常用GitHub开源项目(持续更新) 数据类 开源库 作者 简介 AFNetworking Mattt 网络请求库 ASIHTTPRequest pokeb 网络请求库 Alamofire ...
- java开发中遇到的问题及解决方法(持续更新)
摘自 http://blog.csdn.net/pony12/article/details/38456261 java开发中遇到的问题及解决方法(持续更新) 工作中,以C/C++开发为主,难免与其他 ...
- 个人微信号二次开发SDK协议,个人微信号二次开发api接口
通过这个API接口可以做什么? 通过我们提供的API接口您可以开发: 工作手机(如:X创,X码,XX管家等) 微信群讲课软件(如:讲课X师,一起X堂等) 微信社群管理软件(如:小X管家,微X助手等) ...
- BIMFACE 二次开发 SDK 之歌
<BIMFACE SDK 之歌>讲述了作者与 BIMFACE 从相识.相知.相爱.相守的艳遇之爱唯美故事 我是一个小小的程序员 穿行在人来人往的IT行业之间 编程工作与建筑信息化相关 ...
- BIMFACE二次开发SDK 开源C#版
[ BIMFace.SDK.CSharp ] 是基于微软.NET 技术封装的用于 BIMFACE 二次开发的通用类库.其中封装了BIMFace服务端API,包含基础API.文件上传API.文件转换AP ...
- RTX二次开发SDK需要注意的地方
1.如果是ASP.net二次开发调用的,线程池必须开发 Enable 32-bit Applications设置为true. 因为RTX的调用接口很多是32位的.否则会报一下错误 RootObj = ...
- mybatis学习记录二——mybatis开发dao的方法
4.1 SqlSession使用范围 4.1.1 SqlSessionFactoryBuilder 通过SqlSessionFactoryBuilder创建会话工厂SqlSession ...
- NC二次开发常用的方法
//这张表存放的是所有单据模板的信息表 如果不知道单据模板的信息后可在数据库中查询PUB_BILLTEMPLET//这张表是打印模板的表改模板可以再此表修改pub_print_template//获取 ...
- iOS开发调试技巧总结(持续更新中)
作者:乞力马扎罗的雪 原文 对于软件开发而言,调试是必须学会的技能,重要性不言而喻.对于调试的技能,基本上是可以迁移的,也就是说你以前在其他平台上掌握的很多调试技巧,很多也是可以用在iOS开发中.不 ...
随机推荐
- matlab-非线性方程求根函数及函数曲线绘制
Matlab中提供了很多求解非线性方程(y=f(x))的函数,刚開始使用,真的很困惑.全部.这里依据matlab的help文档对这些函数做一些小小的总结 fsolve函数 用来求解非线性方程组:F(x ...
- Atitit.Java exe bat 作为windows系统服务程序运行
Atitit.Java exe bat 作为windows系统服务程序运行 1. 使用SC命令+srvany.exe (不错,推荐)+net start1 1.1. First 创建一个java的运 ...
- 在Linux中配置DNS的正确方式
链接:http://ccl.cse.nd.edu/operations/condor/hostname.shtml Common Hostname Problem on Linux Newly ins ...
- k8s调度-指定node
1.给node加标签 kubectl label nodes k8s-slave2 slave= 2.查看标签 [root@k8s_master centos7]# kubectl describe ...
- ThinkPHP3.1URL分发BUG修正
请先留意以下PHP脚本 PHP脚本A(http://127.0.0.1:8110/test.php): $url = 'http://127.0.0.1:8110/demo.php'; //curl请 ...
- ngnix 参考配置
#user nobody; worker_processes ; #error_log logs/error.log; #error_log logs/error.log notice; #error ...
- wamp 两个不同的php.ini
最近在本地开发的windows wamp环境安装一个vld 扩展,碰见一个奇怪的问题,phpinfo() 有 而cli 命令模式里面却没有 最后发现wamp phpinfo()和cli命令模式指向的p ...
- 利用asset存储mesh
做mesh导出的时候遇到了这个问题. 最后解决: 存储mesh数据:AssetDatabase.CreateAsset(meshfilter.mesh, "Assets/" + & ...
- getMeasuredHeight(),getScrollY(),getHeight()的区别和联系
前言:关于控件的高度有两种获取方式,一个是获得控件的实际大小(getMeasuredHeight),就是包含显示部分和已显示的部分: 而getHeight是获得控件的显示的大小,如果控件大小超出的屏幕 ...
- EasyNVR、EasyDSS二次开发之:RTMP、HLS流在web页面进行无插件播放示例Demo代码
不管是基于EasyNVR还是EasyDSS,都是支持无插件直播,这也是未来视频直播的一个趋势.对于传统的浏览器插件播放谁用谁知道: 以上是软件自带播放展示 背景需求 对于EasyNVR和EasyDSS ...