如这篇文章所示 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可用方法大全(持续更新)的更多相关文章

  1. iOS:开发常用GitHub开源项目(持续更新)

    IOS开发常用GitHub开源项目(持续更新) 数据类 开源库 作者 简介 AFNetworking Mattt 网络请求库 ASIHTTPRequest pokeb 网络请求库 Alamofire ...

  2. java开发中遇到的问题及解决方法(持续更新)

    摘自 http://blog.csdn.net/pony12/article/details/38456261 java开发中遇到的问题及解决方法(持续更新) 工作中,以C/C++开发为主,难免与其他 ...

  3. 个人微信号二次开发SDK协议,个人微信号二次开发api接口

    通过这个API接口可以做什么? 通过我们提供的API接口您可以开发: 工作手机(如:X创,X码,XX管家等) 微信群讲课软件(如:讲课X师,一起X堂等) 微信社群管理软件(如:小X管家,微X助手等) ...

  4. BIMFACE 二次开发 SDK 之歌

    <BIMFACE SDK 之歌>讲述了作者与 BIMFACE 从相识.相知.相爱.相守的艳遇之爱唯美故事   我是一个小小的程序员 穿行在人来人往的IT行业之间 编程工作与建筑信息化相关 ...

  5. BIMFACE二次开发SDK 开源C#版

    [ BIMFace.SDK.CSharp ] 是基于微软.NET 技术封装的用于 BIMFACE 二次开发的通用类库.其中封装了BIMFace服务端API,包含基础API.文件上传API.文件转换AP ...

  6. RTX二次开发SDK需要注意的地方

    1.如果是ASP.net二次开发调用的,线程池必须开发 Enable 32-bit Applications设置为true. 因为RTX的调用接口很多是32位的.否则会报一下错误 RootObj =  ...

  7. mybatis学习记录二——mybatis开发dao的方法

    4.1     SqlSession使用范围 4.1.1     SqlSessionFactoryBuilder 通过SqlSessionFactoryBuilder创建会话工厂SqlSession ...

  8. NC二次开发常用的方法

    //这张表存放的是所有单据模板的信息表 如果不知道单据模板的信息后可在数据库中查询PUB_BILLTEMPLET//这张表是打印模板的表改模板可以再此表修改pub_print_template//获取 ...

  9. iOS开发调试技巧总结(持续更新中)

    作者:乞力马扎罗的雪  原文 对于软件开发而言,调试是必须学会的技能,重要性不言而喻.对于调试的技能,基本上是可以迁移的,也就是说你以前在其他平台上掌握的很多调试技巧,很多也是可以用在iOS开发中.不 ...

随机推荐

  1. Storm/Cassandra集成错误:NoSuchMethodError: concurrent.Futures.withFallback

    本文原文出处: http://blog.csdn.net/bluishglc/article/details/50443205 严禁不论什么形式的转载.否则将托付CSDN官方维护权益. 2015年的最 ...

  2. 【Hadoop基础教程】2、Hadoop之单机模式搭建(转)

    单机模式所需要的系统资源是最少的,这种安装模式下,Hadoop的core-site.xml.mapred-site.xml.hdfs-site.xml配置文件均为空.默认情况下,官方hadoop-1. ...

  3. PorterDuffXferMode不对的真正原因PorterDuffXferMode深入试验)

    菜鸡wing遇敌PorterDuffXferMode,不料过于轻敌,应战吃力. 随后与其大战三天三夜.三百余回合不分胜负. 幸得 @咪咪控 相助,侥幸获胜. keyword:PorterDuffXfe ...

  4. VMware网络连接 桥接、NAt、host-only模式

    如果你想利用VMWare安装虚拟机,或想创建一个与网内其他机器相隔离的虚拟系统,进行特殊的调试工作.此时,对虚拟系统网络连接模式的选择就非常重要了.如果你选择的工作模式不正确,就无法实现上述目的,也就 ...

  5. 华为nova3发布,将支持华为AI旅行助手

    ​​​华为nova3于7月18日18:00在深圳大运中心体育馆举行华为nova 3的发布会,从本次华为nova3选择的代言人-易烊千玺,不难看出新机依然延续nova系列的年轻属性,主打 “高颜值 爱自 ...

  6. LNMP环境搭建之php安装,wordpress博客搭建

    LNMP环境搭建之php安装,wordpress博客搭建 一.介绍: 1.什么是CGI CGI全称是"通用网关接口"(Common Gateway Interface),HTTP服 ...

  7. 【Mac系统 + Python + Django】之搭建第一个【Django Demo(一)】

    我编写的此系列学习资料是通过虫师的python接口自动化出的书学习而来的,在此说明一下,想学习更多的自动化的同学可以找虫师的博客园,非广告,因为我python+selenium自动化也是跟虫师学的,学 ...

  8. Angular1.0 在Directive中调用Controller的方法

    Controller中定义了$scope.method = function(){} Directive中需要引入$scope http://stackoverflow.com/questions/2 ...

  9. vue实践---vue动态加载组件

    开发中遇到要加载10个或者更多的,类型相同的组件时,如果用普通的 import 引入组件,components注册组件,代码显得太啰嗦了,这时候就需要用到 require.context 动态加载这些 ...

  10. Python装饰器 计时器记录方法执行性能

    import time def timeit(func): def wrapper(): start = time.clock() func() end =time.clock() print 'us ...