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

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

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

[复制链接]
发表于 2018-5-18 18:35:00 | 显示全部楼层 |阅读模式
( T2 S3 U, f% A
首先,SDK项目需要引用sdk的类库,位置在 安装目录\xcontrol.core.dll 如 C:\Program Files\南宁侠客网络科技有限公司\侠客手机群控引擎\xcontrol.core.dll0 J9 z" d, J: _( u/ u/ s- o
+ v) e% ^5 G8 J3 E+ E
可用方法如下:
( Z8 x$ v4 X5 y9 M8 U( b
  • public void ShowLogConsole([string title = 插件调试日志])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示日志控制台- ~% D, [1 v2 f5 ~3 E
6 K! N( H3 f9 @" E7 s4 ?
  • public string Click(int x, int y)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 点击
  • 参数:
  • x: x坐标
  • y: y坐标
  • 返回结果:
    * u' N9 n0 \5 a' w3 I- r

+ ]" v: n1 W- Y* g
  • public abstract string Name()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块名称
  • 返回结果:
    ) G- Z8 B8 w+ G/ Q, ?  f

$ t% J8 n  ]* ]# r) @9 C$ h) Z3 _
  • public abstract string Description()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块描述
  • 返回结果:6 t$ o% @0 a" c

! L  o1 R$ @2 P) ^2 U, s: }$ c
  • public abstract void RunScript()
  • AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 模块执行过程
  • 返回结果:
    0 U) K2 Z; O9 _2 h
! u" Z1 |; J  g( f) S( d
  • public string Drag(int startx, int starty, int endx, int endy)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 拖动
  • 参数:
  • startx: 起始x坐标
  • starty: 起始y坐标
  • endx: 结束x坐标
  • endy: 结束y坐标
  • 返回结果:
    8 u1 R4 ~. S  b6 r
. N6 T- q" G2 P
  • public string FindAndCLickAndClearObj(string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击并清空(精确匹配模式)
  • 参数:
  • text: 资源id或类名或特征字符
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:, B  P$ }/ d- r1 i9 w" K- n; G

8 V6 Y# A0 S1 [' L/ ~# B
  • public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击并清空(正则模式)
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    ' P/ N* e+ r9 f& K5 X

9 a7 Z( y; K- }5 Z
  • public string FindAndCLickObj(string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击元素(精确匹配模式)
  • 参数:
  • text: 资源id或类名或特征字符
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:' b  x5 r# ^' |$ a0 j- s. e. R5 M

" B0 z4 ^2 v3 T& W+ c  M8 ~1 p6 R
  • public string FindAndCLickObjByRegex(string regex, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并点击元素(基于正则表达式)
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:
    # ~. W! T6 v& ~* N( g8 V9 P
' A2 Z8 c) j' e2 F8 c; L
  • public string FindAndInutText(string name, string text, [int index = 0])
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 查找并赋值(一般用于文本框)
  • 参数:
  • name: 资源id或类名或特征字符(支持正则表达式)
  • text: 输入的文本
  • index: 索引,表示作用于匹配的第几个结果
  • 返回结果:; N2 H$ I$ ?& J6 j5 s# Y

4 `1 G* i" M; ]  l# @: C2 g9 k
  • public string FindObj(string text)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 精确匹配查找元素
  • 参数:
  • text: 资源id或类名或特征字符
  • 返回结果:
    # V# h" T: X; G
9 H: F0 o  L( J, c6 H1 Q
  • public string FindObjByRegex(string regex)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 基于正则查找元素
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • 返回结果:
    & p% d# y" D& B. [$ @6 l) \

1 g7 n6 d5 H9 G  ^3 b
  • public string GetLoction()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 读取手机的GPS坐标
  • 返回结果:+ h0 n/ ^$ i( [# ^2 x5 _0 s

& K  t/ e3 s+ ~$ [- N5 h
  • public System.Collections.Generic.List<string> GetUiTexts(string regex)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 获取元素文本
  • 参数:
  • regex: 资源id或类名或特征字符(支持正则表达式)
  • 返回结果:
    ' s2 ~. {' }/ r$ r  Z, _+ [/ {2 I

" p% C2 L1 f5 b% }* l
  • public void InputText(string text)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 通过输入法输入文本
  • 参数:
  • text: 要输入的内容
    # n. ~* ?$ w% {- A" A8 |, J
" J4 y, C* H) v+ Z9 C
  • public void OpenUserChat(string userid)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 打开用户对话界面
  • 参数:
  • userid: 微信id,可以是真实id也可以是加密id,或者群id、公众号id/ _. ^0 p* R* S) D; S% d& |
1 e& K$ Z" @- Y. U( @
  • public string PressKeyCode(int keycode)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 发送按键
  • 参数:
  • keycode: 按键代码(可参考安卓keyevent
  • 返回结果:# D8 B% t# v* W; {4 e
0 i; X9 q( c% ]/ \$ h
  • public string RunAdb(string adbcmd)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 在手机上执行执行ADB命令
  • 参数:
  • adbcmd: adb命令
  • 返回结果:2 y& x" K/ ~6 B& t  u' k
; q3 t. m  x* {- I
  • public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 发送Intnet
  • 参数:
  • dic: key value形式的intnet
  • 返回结果:6 s; b  E3 K3 C7 `$ K7 X
! ?- `5 V1 r& x1 u3 S  ]
  • public void SetAirPlane(bool ison)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 设置飞行模式
  • 参数:
  • ison: 是否开启飞行模式9 e( [8 {6 E5 N( Y2 c; A

$ p9 x2 A" O; {0 @: O
  • public void SetImei(string imei)
  •     AndroidControlSDK.AndroidScript 的成员+ F* B( q) c2 h1 N+ M( [3 x) Q

+ P- A. D$ P4 ~) k7 ?5 H
  • public void SetLoction(string loction)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 设置手机的GPS坐标
  • 参数:
  • loction:
    3 F) Y3 {  f. z

5 U9 W" a8 P1 w; A# ^
  • public void SetMacAddress(string macaddress)
  •     AndroidControlSDK.AndroidScript 的成员
    5 F/ H9 u+ A0 Q/ h6 Y7 y+ d4 n

0 X" u3 P7 \& t/ V
  • public void SetSid(string sid)
  •     AndroidControlSDK.AndroidScript 的成员
    ) [3 z1 }4 `: `! ]
- [6 I  {0 [% f" {% w
  • public void SetSim(string sim)
  •     AndroidControlSDK.AndroidScript 的成员. r- [' w. C4 `5 G2 a
& }( B0 j4 s7 P4 {" V5 B4 }* R
  • public void ShowStatus(string status)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示脚本状态
  • 参数:
  • status: 状态7 t3 V  G) @3 K! L+ B2 O) W4 b  e* A
! X/ O; F+ k5 G9 `
  • public void ShowStatus(string status, System.Windows.Media.Color color)
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 显示脚本状态
  • 参数:
  • status: 状态
  • color: 文字颜色
    % r/ ?# h( k' L8 M" Q

9 [' w& p% B+ y. C7 o
  • public void StartWeixin()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 进入微信5 e+ [+ m. I: p* C+ }

8 f9 Y- E3 x5 R1 W
  • public void YaoYiXia()
  •     AndroidControlSDK.AndroidScript 的成员
  • 摘要:
  • 摇一摇

  • ( X2 n, O. ]1 Z: U

$ J  z  f* |3 K! w& n
发表于 2018-6-11 23:08:01 | 显示全部楼层
委任他为热天热问题
发表于 2018-9-4 19:29:33 | 显示全部楼层
好东西,谢谢分享!!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

技术交流售后群

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



GMT+8, 2025-5-2 18:45 , Processed in 0.147865 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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