AI手机网,短视频直播 硬改改机 一键新机 群控软件 刷机定制

 找回密码
 立即注册
查看: 2003|回复: 2

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

[复制链接]
发表于 2018-5-18 18:35:00 | 显示全部楼层 |阅读模式

( W0 P  o/ h4 o! t* B0 S
首先,SDK项目需要引用sdk的类库,位置在 安装目录\xcontrol.core.dll 如 C:\Program Files\南宁侠客网络科技有限公司\侠客手机群控引擎\xcontrol.core.dll
8 w5 Q- b- H& p  o  h( U

  l* |; c4 J/ {可用方法如下:
  C* k/ U3 N; w2 T6 n
  • public void ShowLogConsole([string title = 插件调试日志])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示日志控制台) ^$ I- @8 @0 d
8 h$ q8 ^/ j) m. s) A+ j0 X
  • public string Click(int x, int y)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 点击
  • 参数:
  • x: x坐标
  • y: y坐标
  • 返回结果:
    ' ~: p& l; V2 W5 @7 _* s# c
+ A8 a2 K0 [, H' l' E
  • public abstract string Name()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块名称
  • 返回结果:  P- h! `8 `; d8 }
; F$ R7 S# E; w+ _8 }
  • public abstract string Description()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块描述
  • 返回结果:, l* t/ W, @& q* o/ L7 h, U
9 ^, _6 J2 O! Z# F+ @' h
  • public abstract void RunScript()
  • AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块执行过程
  • 返回结果:
    ) s) M2 n* G. x7 {; N

3 j9 f; Y2 V& Z" O5 f8 `
  • public string Drag(int startx, int starty, int endx, int endy)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 拖动
  • 参数:
  • startx: 起始x坐标
  • starty: 起始y坐标
  • endx: 结束x坐标
  • endy: 结束y坐标
  • 返回结果:
    - i3 k& \" e6 |
7 S# E) e9 u, p) _% }
  • public string FindAndCLickAndClearObj(string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击并清空(精确匹配模式)
  • 参数:
  • text: 资源id或类名或特征字符
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    ! ]. ]" R' s. E" B" C* d

* k& V" D4 {8 P4 j9 C' E; q
  • public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击并清空(正则模式)
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    7 D+ Z) [- G9 G- G
: j" a" m! J& P0 H9 j' _
  • public string FindAndCLickObj(string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击元素(精确匹配模式)
  • 参数:
  • text: 资源id或类名或特征字符
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    4 l- @, f. |/ t! O9 E+ f
' N7 c. u" ^4 U1 Z% v, c
  • public string FindAndCLickObjByRegex(string regex, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击元素(基于正则表达式)
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:, O3 t& }# V1 h! O6 a1 R
2 E: `4 N$ R! O+ D8 U; o* W$ b
  • public string FindAndInutText(string name, string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并赋值(一般用于文本框)
  • 参数:
  • name: 资源id或类名或特征字符(支持正则表达式)
  • text: 输入的文本
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    5 Z, ~) J1 \5 B
8 |# U( K5 D: ?2 t- f2 d8 [& ^
  • public string FindObj(string text)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 精确匹配查找元素
  • 参数:
  • text: 资源id或类名或特征字符
  • 返回结果:! _" |5 S. {9 H  ?+ @
9 g( q- v& }  E% J
  • public string FindObjByRegex(string regex)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 基于正则查找元素
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • 返回结果:$ t' C1 S* t/ A2 J2 t3 O4 r" S  `9 l

, x; P8 o" `( g  S3 w  e  S* |
  • public string GetLoction()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 读取手机的GPS坐标
  • 返回结果:
    % l, z" B" U% L0 b
( t# q7 s8 n% N) T# A
  • public System.Collections.Generic.List<string> GetUiTexts(string regex)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 获取元素文本
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • 返回结果:: `0 @1 ?. l& o
3 E% F. E) z2 f0 _' Z
  • public void InputText(string text)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 通过输入法输入文本
  • 参数:
  • text: 要输入的内容6 d# [6 j& s! u8 n

) X3 B- V( b6 _8 p* m! l0 s7 p
  • public void OpenUserChat(string userid)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 打开用户对话界面
  • 参数:
  • userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id
    : S- L/ f) ~0 T( S

% t. ]% F7 ?4 G1 N
  • public string PressKeyCode(int keycode)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 发送按键
  • 参数:
  • keycode: 按键代码(可参考安卓keyevent
  • 返回结果:0 z% Y, j2 w. F& O  X7 P
1 Y* A1 q& q" k
  • public string RunAdb(string adbcmd)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 在手机上执行执行ADB命令
  • 参数:
  • adbcmd: adb命令
  • 返回结果:
    # O3 o! }% l# B+ b/ ?  S

$ m3 g6 ?2 O. ]2 Z% H5 V: q! o
  • public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 发送Intnet
  • 参数:
  • dic: key value形式的intnet
  • 返回结果:" A8 _" `. ~1 ?  {: Y
/ I" K$ ?3 R: E. Z# b7 o7 f/ ]7 F
  • public void SetAirPlane(bool ison)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 设置飞行模式
  • 参数:
  • ison: 是否开启飞行模式4 f4 F: _9 P2 x5 I/ K

5 h6 l" T) h) |- C/ c
  • public void SetImei(string imei)
  •     AndroidControlSDK.AndroidScript 的成员
    9 N" H7 b7 V+ l: r' D
% C$ a' p3 d( x- v4 e
  • public void SetLoction(string loction)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 设置手机的GPS坐标
  • 参数:
  • loction:
    # [3 i. X) ^  L+ f. k0 B" n! U
7 H( i, c, T; w# K+ X% S" c
  • public void SetMacAddress(string macaddress)
  •     AndroidControlSDK.AndroidScript 的成员  J( c. R1 m9 M( {. Q
+ \- g- P! o6 D9 q
  • public void SetSid(string sid)
  •     AndroidControlSDK.AndroidScript 的成员
    7 b1 d2 E8 ~* D9 G1 {# b

' h! {! M; a3 M. y: O
  • public void SetSim(string sim)
  •     AndroidControlSDK.AndroidScript 的成员
    % S# j6 \4 i3 s* v- _2 ^7 B* q# b
+ x. [- j  n' @6 n7 t0 ?
  • public void ShowStatus(string status)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示脚本状态
  • 参数:
  • status: 状态
    2 O2 G3 c1 h$ ^. Z  X4 F  l$ w: q/ C

) g0 g9 j% p! O* Y$ U" Q
  • public void ShowStatus(string status, System.Windows.Media.Color color)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示脚本状态
  • 参数:
  • status: 状态
  • color: 文字颜色6 x* l( m; T- p8 Y) t2 H

2 ?8 K/ J1 D4 w& r, N1 q3 D
  • public void StartWeixin()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 进入微信% y; h' g7 \8 d9 \! T/ d6 B
3 S3 q, n1 z% o
  • public void YaoYiXia()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 摇一摇
  • ! y, z8 \, {( c, h' J

5 k3 W! M/ K* ^" M1 b
发表于 2018-6-11 23:08:01 | 显示全部楼层
委任他为热天热问题
发表于 2018-9-4 19:29:33 | 显示全部楼层
好东西,谢谢分享!!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

技术交流售后群

QQ|小黑屋|手机版|站点找错-建议|AI手机网 |Sitemap



GMT+8, 2025-5-2 19:25 , Processed in 0.369561 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表