如这篇文章所示 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. Android:使用ZXing生成二维码(支持加入Logo图案)

    ZXing是谷歌的一个开源库.能够用来生成二维码.扫描二维码.本文所介绍的是第一部分. 首先上效果图: ZXing相关各种文件官方下载地址:https://github.com/zxing/zxing ...

  2. 关于浮点数的json解析

    近期在工作中遇到个问题 通过post请求从其他系统(好像是C#写的)获得json字符串 {"geometry":{"rings":[[[40426489.331 ...

  3. Dictionary及KeyValuePair使用

    /// <summary> /// 除去数组中的空值和签名参数并以字母a到z的顺序排序 /// </summary> /// <param name="dicA ...

  4. LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。 但他是找XML文件并实例化

    在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById().不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例 ...

  5. ACdream 1216 (ASC训练1) Beautiful People(DP)

    题目地址:http://acdream.info/problem? pid=1216 这题一開始用的是线段树.后来发现查询的时候还须要DP处理.挺麻烦..也就不了了之了..后来想到,这题事实上就是一个 ...

  6. ajaxFileUpload 实现多文件上传(源码)

    按照原ajaxFileUpload.js是不能多文件上传的.需要对源码进行修改:主要修改了fileElementId部分 具体参考 https://blog.csdn.net/itmyhome1990 ...

  7. IE 下 log 调试的一点不同

    介绍一点IE下控制台调试与chrome的区别 数组 alert([1,2]) console.log([1,2]) console.log([1,2],"1,2") alert I ...

  8. #region的作用和注释快捷键

    让函数在编辑器中收起来,简洁 #region All MenuItems [@MenuItem("xxx")] public static void Init() { XXXXX; ...

  9. Win7系统CMD命令提示符输入中文变乱码怎么办

    Win7系统下经常使用CMD命令提示符进行很多操作,发现Win7旗舰版系统在CMD命令提示符不能输入文字,输入的中文字都变成乱码,这是怎么回事呢?本文将提供Win7系统CMD命令提示符输入中文变乱码的 ...

  10. python 微信跳一跳和源码解读

    刚好周末,想研究一下前阵子很火的微信跳一跳 下面进入正文. 本文适用对象为WIN10系统,安卓用户.目的在于让丝毫没有接触过Python的小伙伴都能成功运行,如果你恰好是这样的对象,那么跟着我开始操作 ...