如这篇文章所示 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 的成员
摘要:
摇一摇

转载于:https://www.cnblogs.com/microtiger/p/6284902.html

侠客群控引擎二次开发SDK可用方法大全(持续更新)相关推荐

  1. 聚播微信群控云控引擎二次开发SDK服务端对接接口

    聚播微信群控云控引擎二次开发SDK服务端对接接口 case HeartBeatReq: {// 客户端发送的心跳包heartBeatReqHandler.handleMsg(ctx, msgVo);b ...

  2. 聚播群控微信二次开发sdk完整API

    聚播群控微信二次开发sdk完整API功能: 微信加好友功能API 1.导入手机通讯录 2.手机通讯录加好友 3.加指定微信群好友 4.自动通过微信好友请求 5.手机模拟定位 6.附近人加好友 7.各种 ...

  3. 【ArcGIS Pro二次开发】系列学习笔记,持续更新,记得收藏

    一.前言 这个系列是本人的一个学习笔记. 作为一个ArcGIS Pro二次开发的初学者,最困扰的就是无从入手.网上关于ArcGIS Pro二次开发的中文资料极少,官方文档对于我这样的英文苦手又太不友好 ...

  4. AutoCAD2019+vs2019+C# 二次开发学习笔记day01(持续更新)

    目录 一.新建项目 1.应用程序 目标框架 选择 4.7.2版 2.生成 目标平台选择x64 3.调试 启动外部程序 选择 acad.exe 二.添加autocad类库 三.如何运用命名空间 1.[C ...

  5. AutoCAD2019+vs2019+C# 二次开发学习笔记day05(持续更新)

    目录 一. 给定半径和圆心 绘制圆 Circle 1.代码记录 2.封装函数 二.给定两点绘制圆 1.代码记录 2.封装函数 三.给定三点绘制圆 1.代码记录 2.封装函数 四.多段线 Polylin ...

  6. 手机微信群控二次开发SDK的部分API功能

    手机微信群控二次开发SDK的部分API功能: 微信加好友功能API 1.导入手机通讯录 2.手机通讯录加好友 3.加指定微信群好友 4.自动通过微信好友请求 5.手机模拟定位 6.附近人加好友 7.各 ...

  7. 微信二次开发sdk非ipad/android协议(很好用)

    转自 https://github.com/tangjinjinwx/Public.WeChat.CRM.SDK 个人微信号二次开发sdk协议,微信个人号开发API接口 微信SDK程序概要说明 非微信 ...

  8. 个人微信号二次开发sdk协议,微信个人号开发API接口

    个人微信号二次开发sdk协议,微信个人号开发API接口 微信SDK程序概要说明 个人微信号开发sdk非微信ipad协议.非mac协议,非安卓协议,api可实现微信99%功能: 无需扫码登录.可收发朋友 ...

  9. 微信二次开发SDK使用教程--手机检测到有人点赞/取消点赞通知服务端

    微信二次开发SDK使用教程--手机检测到有人点赞/取消点赞通知服务端 case CircleLikeNotice : {//手机检测到有人点赞/取消点赞通知 log.debug("socke ...

  10. 聚播微信多开客服系统二次开发SDK服务端接口

    聚播微信多开客服系统二次开发SDK服务端接口 case HeartBeatReq: {// 客户端发送的心跳包heartBeatReqHandler.handleMsg(ctx, msgVo);bre ...

最新文章

  1. Windows10快捷应用指令
  2. tf.keras.activations.relu 激活函数 示例
  3. sqlserver定时差异备份_一分钟看懂完全备份、差异备份以及增量备份
  4. Android:日常学习笔记(6)——探究活动(3)
  5. python入门学习的第三天
  6. 前端学习(2181):vue-router导航守卫的补充
  7. Bootstrap -- 初见 Bootstrap
  8. 探讨Netty获取并检查Websocket握手请求的两种方式
  9. CAD怎么标注坐标?CAD坐标标注教程
  10. 【软件推荐】电脑控制手机软件Scrcpy
  11. [Hack The Box] HTB—Bolt walkthrough
  12. 搭建Orthanc服务器-DICOM服务器
  13. Method类的使用
  14. EXCEL利用正则匹配去替换内容
  15. iOS Masonry使用
  16. 胖客户端与瘦客户端概念与区别
  17. 标准网页两侧浮动广告代码 支持FF及IE
  18. RAID5 磁盘阵列的故障以及修复要点
  19. 一文掌握Python+tkinter键盘事件与鼠标事件处理
  20. # 超酷的7个JavaScript学习网站

热门文章

  1. android好用的文件管理器,安卓哪种文件管理器好用 三款文件管理器横向评测
  2. 搭建容器私有创库Harbor
  3. All clients has disconnected from. You can graceful shutdown now., dubbo version: , current host
  4. 关联分析python代码
  5. 登录失败 12306服务器不稳定,为什么12306登陆失败
  6. 君莫笑系列视频学习(0)
  7. 单片机复位电路的简谈
  8. 计算机操作系统存在的意义,电脑操作系统的作用
  9. Halcon学习-算子学习-映射/傅里叶变换/gen_grid_region/rft_generic例程
  10. 韩顺平循序渐进学java百度云_韩顺平.循序渐进学java从入门到精通视频教程及笔记与源码下载(94讲)...