如这篇文章所示 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. script 标签 幼儿园级别的神坑。居然还让我踩到了。

    这样的写法,会导致页面出现问题,就类似被中断了一样,百思不得其解还以为是代码出了问题. <script src="./Components/ProcessLine/ProcessLin ...

  2. Android採用async框架实现文件上传

    页面效果 须要的权限 <uses-permission android:name="android.permission.INTERNET"/> 网络訪问权限; 布局文 ...

  3. 使用MongoDB 记录业务日志

    最近公司有个需求,要对业务日志进行记录并根据日志排查问题,以前都是使用log4net之类的日志组件来记录到文件,这种方式已经不能满足业务的需要,因为日志文件会很大,即使进行分割后,查找也是很不方便,何 ...

  4. C语言基础知识【函数】

    C 函数1.函数是一组一起执行一个任务的语句.每个 C 程序都至少有一个函数,即主函数 main() ,所有简单的程序都可以定义其他额外的函数.您可以把代码划分到不同的函数中.如何划分代码到不同的函数 ...

  5. js中 opener和parent的差别

    opener即谁打开我的,比方A页面利用window.open弹出了B页面窗体.那么A页面所在窗体就是B页面的opener.在B页面通过opener对象能够訪问A页面. parent表示父窗体,比方一 ...

  6. iOS 线程管理的学习记录

    本文转载至 http://www.2cto.com/kf/201312/265451.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 ...

  7. 你须知道的30个CSS选择器 »

    你也许已经掌握了id.class.后台选择器这些基本的css选择器.但这远远不是css的全部.下面向大家系统的解析css中30个最常用的选择器,包括我们最头痛的浏览器兼容性问题.掌握了它们,才能真正领 ...

  8. hdu 2108 Shape of HDU【判断多边形是否是凸多边形模板】

    链接: http://acm.hdu.edu.cn/showproblem.php?pid=2108 http://acm.hust.edu.cn/vjudge/contest/view.action ...

  9. 1.Python学习---helloworld

    1.首先访问http://www.python.org/download/去下载最新的python版本. 2.安装下载包,一路next. 3.为计算机添加安装目录搭到环境变量,如图把python的安装 ...

  10. js城市联动选择器

    <html> <head> <META charset="utf8"> <script type="text/javascrip ...