如这篇文章所示 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. 2.JAVA编程思想——一切都是对象

    一切都是对象 欢迎转载.转载请标明出处:http://blog.csdn.net/notbaron/article/details/51040221 虽然以C++为基础,但 Java 是一种更纯粹的面 ...

  2. Atitit。Time base gc 垃圾 资源 收集的原理与设计

    Atitit.Time base gc 垃圾 资源 收集的原理与设计 1. MRC(MannulReference Counting手动 retain/release/autorelease语句1 2 ...

  3. 清华EMBA课程系列思考之三 -- 中国经济与金融

    清华EMBA的第三次课,大家都已经渐渐了解了课程系列的基本节奏,也逐步适应了思考的基本思路,本次课程涉及到的全部内容都非常专业.闲话少述,直入主题了. 李稻葵教授部分: -- 清华大学经济管理学院弗里 ...

  4. linux中查找文件并合并文件

    find ./src -name '*.txt' -exec cat '{}' \; > test.txt

  5. nginx http proxy 正向代理

    配置 Nginx Http Proxy 代理服务器,与 [Squid] 功能一样,适用于正向代理 Http 网站. 一,Nginx 正向代理配置文件: server { resolver 8.8.8. ...

  6. HDU3351 Seinfeld 【贪心】

    Seinfeld Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total S ...

  7. k8s调度-指定node

    1.给node加标签 kubectl label nodes k8s-slave2 slave= 2.查看标签 [root@k8s_master centos7]# kubectl describe ...

  8. java程序优化

    程序代码优化要点: 字符串优化:分析String源码,了解String常用方法,使用StringBuffer.StringBuilder. List.Map.Set优化:分析常用ArrayList.L ...

  9. android shape的用法总结

    参考代码: <shape xmlns:android="http://schemas.android.com/apk/res/android" > <corner ...

  10. x^a=b(mod c)求解x在[0,c-1]上解的个数模板+原根求法

    /************************************* 求解x^a=b(mod c) x在[0,c-1]上解的个数模板 输入:1e9>=a,b>=1,1e9>= ...