的插件SDK能提供很強大的功能(所有官方使用的方法都有提供)
這篇文章是詳細介紹所有SDK可調用的方法
首先,SDK項目需要引用sdk的類庫,位置在 安裝目錄/xcontrol.core.dll 如 C:/PRogram Files/南寧俠客網絡科技有限公司/俠客手機群控引擎/xcontrol.core.dll
可用方法如下:
| 12345 | public void ShowLogConsole([string title = 插件調試日志]) AndroidControlSDK.AndroidScript 的成員 摘要:顯示日志控制臺 | 
| 1234567891011 | public string Click(int x, int y) AndroidControlSDK.AndroidScript 的成員 摘要:點擊 參數:x: x坐標y: y坐標 返回結果: | 
| 1234567 | public abstract string Name() AndroidControlSDK.AndroidScript 的成員 摘要:模塊名稱 返回結果: | 
| 1234567 | public abstract string Description() AndroidControlSDK.AndroidScript 的成員 摘要:模塊描述 返回結果: | 
| 1234567 | public abstract void RunScript()AndroidControlSDK.AndroidScript 的成員 摘要:模塊執行過程 返回結果: | 
| 12345678910111213 | public string Drag(int startx, int starty, int endx, int endy) AndroidControlSDK.AndroidScript 的成員 摘要:拖動 參數:startx: 起始x坐標starty: 起始y坐標endx: 結束x坐標endy: 結束y坐標 返回結果: | 
| 1234567891011 | public string FindAndCLickAndClearObj(string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊并清空(精確匹配模式) 參數:text: 資源id或類名或特征字符index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊并清空(正則模式) 參數:regex: 資源id或類名或特征字符(支持正則表達式)index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickObj(string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊元素(精確匹配模式) 參數:text: 資源id或類名或特征字符index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickObjByRegex(string regex, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊元素(基于正則表達式) 參數:regex: 資源id或類名或特征字符(支持正則表達式)index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 123456789101112 | public string FindAndInutText(string name, string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并賦值(一般用于文本框) 參數:name: 資源id或類名或特征字符(支持正則表達式)text: 輸入的文本index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 12345678910 | public string FindObj(string text) AndroidControlSDK.AndroidScript 的成員 摘要:精確匹配查找元素 參數:text: 資源id或類名或特征字符 返回結果: | 
| 12345678910 | public string FindObjByRegex(string regex) AndroidControlSDK.AndroidScript 的成員 摘要:基于正則查找元素 參數:regex: 資源id或類名或特征字符(支持正則表達式) 返回結果: | 
| 1234567 | public string GetLoction() AndroidControlSDK.AndroidScript 的成員 摘要:讀取手機的GPS坐標 返回結果: | 
| 12345678910 | public System.Collections.Generic.List<string> GetUiTexts(string regex) AndroidControlSDK.AndroidScript 的成員 摘要:獲取元素文本 參數:regex: 資源id或類名或特征字符(支持正則表達式) 返回結果: | 
| 12345678 | public void InputText(string text) AndroidControlSDK.AndroidScript 的成員 摘要:通過輸入法輸入文本 參數:text: 要輸入的內容 | 
| 12345678 | public void OpenUserChat(string userid) AndroidControlSDK.AndroidScript 的成員 摘要:打開用戶對話界面 參數:userid: 微信id,可以是真實id也可以是加密id,或者群id、公眾號id | 
| 12345678910 | public string PressKeyCode(int keycode) AndroidControlSDK.AndroidScript 的成員 摘要:發送按鍵 參數:keycode: 按鍵代碼(可參考安卓keyevent) 返回結果: | 
| 12345678910 | public string RunAdb(string adbcmd) AndroidControlSDK.AndroidScript 的成員 摘要:在手機上執行執行ADB命令 參數:adbcmd: adb命令 返回結果: | 
| 12345678910 | public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic) AndroidControlSDK.AndroidScript 的成員 摘要:發送Intnet 參數:dic: key value形式的intnet值 返回結果: | 
| 12345678 | public void SetAirPlane(bool ison) AndroidControlSDK.AndroidScript 的成員 摘要:設置飛行模式 參數:ison: 是否開啟飛行模式 | 
| 12 | public void SetImei(string imei) AndroidControlSDK.AndroidScript 的成員 | 
| 12345678 | public void SetLoction(string loction) AndroidControlSDK.AndroidScript 的成員 摘要:設置手機的GPS坐標 參數:loction: | 
| 12 | public void SetMacAddress(string macaddress) AndroidControlSDK.AndroidScript 的成員 | 
| 12 | public void SetSid(string sid) AndroidControlSDK.AndroidScript 的成員 | 
| 12 | public void SetSim(string sim) AndroidControlSDK.AndroidScript 的成員 | 
| 12345678 | public void ShowStatus(string status) AndroidControlSDK.AndroidScript 的成員 摘要:顯示腳本狀態 參數:status: 狀態 | 
| 123456789 | 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
可用方法如下:
| 12345 | public void ShowLogConsole([string title = 插件調試日志]) AndroidControlSDK.AndroidScript 的成員 摘要:顯示日志控制臺 | 
| 1234567891011 | public string Click(int x, int y) AndroidControlSDK.AndroidScript 的成員 摘要:點擊 參數:x: x坐標y: y坐標 返回結果: | 
| 1234567 | public abstract string Name() AndroidControlSDK.AndroidScript 的成員 摘要:模塊名稱 返回結果: | 
| 1234567 | public abstract string Description() AndroidControlSDK.AndroidScript 的成員 摘要:模塊描述 返回結果: | 
| 1234567 | public abstract void RunScript()AndroidControlSDK.AndroidScript 的成員 摘要:模塊執行過程 返回結果: | 
| 12345678910111213 | public string Drag(int startx, int starty, int endx, int endy) AndroidControlSDK.AndroidScript 的成員 摘要:拖動 參數:startx: 起始x坐標starty: 起始y坐標endx: 結束x坐標endy: 結束y坐標 返回結果: | 
| 1234567891011 | public string FindAndCLickAndClearObj(string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊并清空(精確匹配模式) 參數:text: 資源id或類名或特征字符index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickAndClearObjByRegex(string regex, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊并清空(正則模式) 參數:regex: 資源id或類名或特征字符(支持正則表達式)index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickObj(string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊元素(精確匹配模式) 參數:text: 資源id或類名或特征字符index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 1234567891011 | public string FindAndCLickObjByRegex(string regex, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并點擊元素(基于正則表達式) 參數:regex: 資源id或類名或特征字符(支持正則表達式)index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 123456789101112 | public string FindAndInutText(string name, string text, [int index = 0]) AndroidControlSDK.AndroidScript 的成員 摘要:查找并賦值(一般用于文本框) 參數:name: 資源id或類名或特征字符(支持正則表達式)text: 輸入的文本index: 索引,表示作用于匹配的第幾個結果 返回結果: | 
| 12345678910 | public string FindObj(string text) AndroidControlSDK.AndroidScript 的成員 摘要:精確匹配查找元素 參數:text: 資源id或類名或特征字符 返回結果: | 
| 12345678910 | public string FindObjByRegex(string regex) AndroidControlSDK.AndroidScript 的成員 摘要:基于正則查找元素 參數:regex: 資源id或類名或特征字符(支持正則表達式) 返回結果: | 
| 1234567 | public string GetLoction() AndroidControlSDK.AndroidScript 的成員 摘要:讀取手機的GPS坐標 返回結果: | 
| 12345678910 | public System.Collections.Generic.List<string> GetUiTexts(string regex) AndroidControlSDK.AndroidScript 的成員 摘要:獲取元素文本 參數:regex: 資源id或類名或特征字符(支持正則表達式) 返回結果: | 
| 12345678 | public void InputText(string text) AndroidControlSDK.AndroidScript 的成員 摘要:通過輸入法輸入文本 參數:text: 要輸入的內容 | 
| 12345678 | public void OpenUserChat(string userid) AndroidControlSDK.AndroidScript 的成員 摘要:打開用戶對話界面 參數:userid: 微信id,可以是真實id也可以是加密id,或者群id、公眾號id | 
| 12345678910 | public string PressKeyCode(int keycode) AndroidControlSDK.AndroidScript 的成員 摘要:發送按鍵 參數:keycode: 按鍵代碼(可參考安卓keyevent) 返回結果: | 
| 12345678910 | public string RunAdb(string adbcmd) AndroidControlSDK.AndroidScript 的成員 摘要:在手機上執行執行ADB命令 參數:adbcmd: adb命令 返回結果: | 
| 12345678910 | public string SendIntent(System.Collections.Generic.Dictionary<string, string> dic) AndroidControlSDK.AndroidScript 的成員 摘要:發送Intnet 參數:dic: key value形式的intnet值 返回結果: | 
| 12345678 | public void SetAirPlane(bool ison) AndroidControlSDK.AndroidScript 的成員 摘要:設置飛行模式 參數:ison: 是否開啟飛行模式 | 
| 12 | public void SetImei(string imei) AndroidControlSDK.AndroidScript 的成員 | 
| 12345678 | public void SetLoction(string loction) AndroidControlSDK.AndroidScript 的成員 摘要:設置手機的GPS坐標 參數:loction: | 
| 12 | public void SetMacAddress(string macaddress) AndroidControlSDK.AndroidScript 的成員 | 
| 12 | public void SetSid(string sid) AndroidControlSDK.AndroidScript 的成員 | 
| 12 | public void SetSim(string sim) AndroidControlSDK.AndroidScript 的成員 | 
| 12345678 | public void ShowStatus(string status) AndroidControlSDK.AndroidScript 的成員 摘要:顯示腳本狀態 參數:status: 狀態 | 
| 123456789 | public void ShowStatus(string status, System.Windows.Media.Color color) AndroidControlSDK.AndroidScript 的成員 摘要:顯示腳本狀態 參數:status: 狀態color: 文字顏色 | 
| 12345 | public void StartWeixin() AndroidControlSDK.AndroidScript 的成員 摘要:進入微信 | 
| 12345 | public void YaoYiXia() AndroidControlSDK.AndroidScript 的成員 摘要:搖一搖 | 
| 12345 | public void StartWeixin() AndroidControlSDK.AndroidScript 的成員 摘要:進入微信 | 
| 12345 | public void YaoYiXia() AndroidControlSDK.AndroidScript 的成員 摘要:搖一搖 | 
新聞熱點
疑難解答