MCPcopy Create free account

hub / github.com/a943512/PyAibote / functions

Functions402 in github.com/a943512/PyAibote

↓ 283 callersMethodSendData
(self, *args)
PyAibote/Tool/SendTcpData.py:9
↓ 31 callersMethoddebug
(self, Msg)
PyAibote/Tool/Logger.py:52
↓ 16 callersMethodCustom_Write_logger
自定义写Log文件 Custom write Log file LogName: 类型名称区分那种的log FileDirName: log文件夹路径 LogFileName:
PyAibote/Tool/LoggerFunc.py:11
↓ 10 callersMethodexecute
(self, IP: str, Port: int, Debug: bool = True, Driver_Params: dict = None, Qt = None, WebsocketSwitch = False,
PyAibote/WebBot.py:105
↓ 8 callersMethoderror
(self, Msg)
PyAibote/Tool/Logger.py:68
↓ 8 callersMethodget_rotation_angle
获取手机旋转角度 Get the rotation angle of the mobile phone return: 手机旋转的角度 return: the angle at which the p
PyAibote/AndroidBotModel/AndroidHidCorrelation.py:53
↓ 6 callersMethodReadJsonFile
读取json文件 Read json file key: 读取一级嵌套路径信息 Key2: 读取key二级嵌套路径信息 .... 最多支持五级嵌套路径, 默认读取所有json
PyAibote/Tool/WriteReadFileFunc.py:75
↓ 5 callersMethodCheckconnect
(self)
PyAibote/Tool/DatabaseFunc.py:42
↓ 5 callersMethodinfo
(self, Msg)
PyAibote/Tool/Logger.py:60
↓ 4 callersMethodStartThreadingTCPServer
(self, cls, IP, Port)
PyAibote/Tool/SocketServer.py:14
↓ 3 callersMethodCheckFile
(self)
PyAibote/Tool/Logger.py:26
↓ 3 callersMethodWrite_logger
将LOG信息写入文件 Write LOG information to a file. LogFilePath: LOG文件路径 Info: LOG的信息 return: 空
PyAibote/Tool/Logger.py:34
↓ 3 callersMethoddebug
(self, msg)
PyAibote/Tool/WebsocketsServer.py:24
↓ 3 callersMethodgoto
跳转页面 Jump page url: 网址 return: 布尔值 url: website address return: bool
PyAibote/WebBotModel/PagesAndNavigation.py:10
↓ 2 callersMethod_Send
(self,data)
PyAibote/WebBotModel/WebLoadWait.py:18
↓ 2 callersMethod_parsing_ocr_data
OCR 文字服务,识别屏幕中的文字 OCR text service, which recognizes the text on the screen ocr_server_id: ocr服务端IP,端口固定为9527。当参
PyAibote/AndroidBotModel/OcrCorrelation.py:9
↓ 2 callersMethodclick_element
点击元素 Click element xpath: 元素路径 wait_time: 等待时间,默认取 5秒 interval_time: 轮询间隔时间,默认取 0.5秒
PyAibote/AndroidBotModel/ElementOperation.py:138
↓ 2 callersMethodelement_exists
元素是否存在 Does the element exist xpath: xpath 路径 wait_time: 等待时间,默认取 self.wait_timeout inte
PyAibote/AndroidBotModel/ElementOperation.py:199
↓ 2 callersMethodocr_server_by_file
OCR 服务,通过 OCR 识别图片路径中的文字 OCR service, which recognizes the characters in the image path through OCR ocr_server_i
PyAibote/WindowsBotModel/OcrOperation.py:30
↓ 2 callersMethodocr_server_by_hwnd
OCR 服务,通过 OCR 识别窗口句柄中的文字 OCR service, which recognizes the characters in the window handle through OCR
PyAibote/WindowsBotModel/OcrOperation.py:57
↓ 1 callersMethodDigtalHumanDriverStart
(self, IP, Port)
PyAibote/Tool/DebugStartDriver.py:61
↓ 1 callersMethodEndShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/WebBotModel/WebLoadWait.py:75
↓ 1 callersMethodReadFile
读取文件 ReadFile path: 需要读取的文件路径 return: 成功返回文件数据, 失败返回False path: the file path to be rea
PyAibote/Tool/WriteReadFileFunc.py:33
↓ 1 callersMethodSaveBase64Png
(self, Base64Data, OutputPath)
PyAibote/Tool/UniversalFunction.py:8
↓ 1 callersMethodStarLoadWait
(self, data)
PyAibote/WebBotModel/WebLoadWait.py:40
↓ 1 callersMethodStartShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/WebBotModel/WebLoadWait.py:61
↓ 1 callersMethodWebDriverStart
(self, Port ,Driver_Params)
PyAibote/Tool/DebugStartDriver.py:14
↓ 1 callersMethodWindowsDriverStart
(self, IP, Port)
PyAibote/Tool/DebugStartDriver.py:38
↓ 1 callersMethod_Send
(self,data)
PyAibote/DigitalHumanModel/DigitalHumanLoadWait.py:18
↓ 1 callersMethod_Send
(self,data)
PyAibote/AndroidBotModel/AndroidLoadWait.py:17
↓ 1 callersMethod_Send
(self,data)
PyAibote/WindowsBotModel/WinLoadWait.py:18
↓ 1 callersMethod__init_accessory
初始化 android Accessory,获取手机 hid 相关的数据 Initialize android Accessory to get the data related to mobile phone hid re
PyAibote/AndroidBotModel/AndroidHidCorrelation.py:12
↓ 1 callersMethod__pull_file
(self, *args)
PyAibote/AndroidBotModel/ScreenshotOperation.py:8
↓ 1 callersMethod__pull_file
(self, *args)
PyAibote/AndroidBotModel/FileTransfer.py:24
↓ 1 callersMethod__push_file
(self, func_name: str, to_path: str, file: bytes)
PyAibote/AndroidBotModel/FileTransfer.py:9
↓ 1 callersMethoddict_factory
元祖变成字典 Yuanzu became a dictionary cursor: sql对象 row: 查询出来的数据集 return: 列表 cursor: sql object row: the queried data set retur
PyAibote/Tool/Sqlite3DataBase.py:33
↓ 1 callersMethodexecute_script
注入执行 JS Injection execution JS script: 要执行的 JS 代码 return: 假如注入代码有返回值,则返回此值,否则返回 None sc
PyAibote/WebBotModel/JSinjection.py:10
↓ 1 callersMethodfind_windows
查找窗口句柄数组,仅查找顶级窗口,不包含子窗口 class_name 和 window_name 都为 None,则返回所有窗口句柄 Find an array of window handles, only top-level windows ar
PyAibote/WindowsBotModel/WindowOperation.py:29
↓ 1 callersMethodget_android_id
获取 Android 设备 ID Get AndroID device id return: Android 设备 ID 字符串 return: AndroID device id string
PyAibote/AndroidBotModel/EquipmentOperation.py:115
↓ 1 callersMethodget_element_rect
获取元素位置,返回元素区域左上角和右下角坐标 Gets the position of the element and returns the coordinates of the upper left corner and the lower ri
PyAibote/AndroidBotModel/ElementOperation.py:11
↓ 1 callersMethodget_extend_param
获取驱动程序命令行参数(不包含ip和port) Get the driver command line parameters (excluding ip and port) return: 成功返回参数,失败返回None
PyAibote/WebBotModel/DrivingOperation.py:20
↓ 1 callersMethodget_hid_data
获取Hid相关数据 先调用 windowsBot.initHid,再调用androidBot.initHid Call windowsbot. initHid before calling androidBot.initHid to obtain h
PyAibote/WindowsBotModel/WinHidCorrelation.py:20
↓ 1 callersMethodinit_new_metahuman
初始化数字人 Initialize digital person model_folder: 模型文件夹 scale: 缩放,1原始大小,0.5缩小一半 is_paly_med
PyAibote/DigitalHumanModel/DigitalHuman.py:10
↓ 1 callersMethodnew_metahuman_switch_action
切换人物形象动作 (使用前需要先调用 init_new_metahuman 初始化数字人) Switch character image action figure_video_path: 人物视频路径
PyAibote/DigitalHumanModel/DigitalHuman.py:49
↓ 1 callersMethodpress
手指按下 Finger press point: 坐标 duration: 持续时间,单位秒 return: Ture 或者 False point:
PyAibote/AndroidBotModel/CoordinateOperation.py:114
↓ 1 callersMethodpress_release
按下屏幕坐标点并释放 Press the screen coordinate point and release it point: 按压坐标 duration: 按压时长,单位秒
PyAibote/AndroidBotModel/CoordinateOperation.py:151
↓ 1 callersMethodrecent_tasks
显示最近任务 Show recent tasks return: 成功返回True 失败返回False return: Returns True successfully, and returns F
PyAibote/AndroidBotModel/EquipmentOperation.py:215
↓ 1 callersMethodrelease
手指抬起 Finger lift
PyAibote/AndroidBotModel/CoordinateOperation.py:144
↓ 1 callersMethodsave_screenshot
保存截图,返回图片地址(手机中)或者 None Save the screenshot and return to the picture address (in the phone) or None image_name:
PyAibote/AndroidBotModel/ScreenshotOperation.py:35
↓ 1 callersMethodscript_main
(self)
PyAibote/WebBot.py:96
↓ 1 callersMethodscript_main
(self)
PyAibote/WindowsBot.py:94
↓ 1 callersMethodscript_main
(self)
PyAibote/DigitalHumanBot.py:46
↓ 1 callersMethodscript_main
(self)
PyAibote/AndroidBot.py:54
↓ 1 callersMethodserver_main
WebSocket 服务器主逻辑 WebSocket server main logic
PyAibote/Tool/WebsocketsServer.py:53
↓ 1 callersMethodswipe
滑动坐标 Sliding coordinate start_point: 起始坐标 end_point: 结束坐标 duration: 滑动时长,单位秒
PyAibote/AndroidBotModel/CoordinateOperation.py:50
MethodEndShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/DigitalHumanModel/DigitalHumanLoadWait.py:59
MethodEndShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/AndroidBotModel/AndroidLoadWait.py:57
MethodEndShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/WindowsBotModel/WinLoadWait.py:59
MethodStarLoadWait
(self, data)
PyAibote/DigitalHumanModel/DigitalHumanLoadWait.py:41
MethodStarLoadWait
(self, data)
PyAibote/AndroidBotModel/AndroidLoadWait.py:39
MethodStarLoadWait
(self, data)
PyAibote/WindowsBotModel/WinLoadWait.py:41
MethodStartShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/DigitalHumanModel/DigitalHumanLoadWait.py:45
MethodStartShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/AndroidBotModel/AndroidLoadWait.py:43
MethodStartShowWait
进行隐式等待和显示等待模式的切换 Switch between implicit waiting and display waiting modes.
PyAibote/WindowsBotModel/WinLoadWait.py:45
MethodStopSrver
(self)
PyAibote/WebBot.py:126
MethodStopSrver
(self)
PyAibote/WindowsBot.py:123
MethodStopSrver
(self)
PyAibote/DigitalHumanBot.py:75
MethodStopSrver
(self)
PyAibote/AndroidBot.py:76
MethodWriteFile
写入文件 WriteFile path: 需要写入的文件路径 data: 需要写入的数据 return: 成功返回True or 失败返回False
PyAibote/Tool/WriteReadFileFunc.py:11
MethodWriteFileAddTo
追加写入文件 Additional write file path: 需要追加写入的文件路径 data: 需要追加写入的数据 return: 成功返回True, 失败返回Fal
PyAibote/Tool/WriteReadFileFunc.py:53
Method__init__
(self,*args)
PyAibote/WebBot.py:45
Method__init__
(self,*args)
PyAibote/WindowsBot.py:51
Method__init__
(self,*args)
PyAibote/DigitalHumanBot.py:31
Method__init__
(self, ip, port, is_print)
PyAibote/Tool/WebsocketsServer.py:15
Method_build
混合开发时启动web驱动 TCP transit service. listen_port: 脚本监听的端口 return: windows类对象 listen_port:
PyAibote/WebBot.py:59
Method_build
使用安卓hid模式时需要启动windows驱动 Windows driver needs to be started when using Android hid mode. listen_port: 脚本监听的端口
PyAibote/WindowsBot.py:67
Methodactivate_frame
激活安卓框架 Activate Android framework secret_key:激活框架的秘钥 secret_key:Key to activate the frame
PyAibote/AndroidBotModel/EquipmentOperation.py:91
Methodactivate_frame
激活Web框架 Activate Web framework secret_key:激活框架的秘钥 secret_key:Key to activate the frame
PyAibote/WebBotModel/DrivingOperation.py:35
Methodactivate_frame
激活Windows框架 Activate Windows framework secret_key:激活框架的秘钥 secret_key:Key to activate the frame
PyAibote/WindowsBotModel/DrivingOperation.py:32
Methodany_elements_exists
遍历列表中的元素 Traverse the elements in the list xpath_list: xpath 列表 wait_time: 等待时间,默认取 self.wait_timeou
PyAibote/AndroidBotModel/ElementOperation.py:223
Methodapp_is_running
判断app是否正在运行(无障碍权限开启只判断前台,未开启则包含前后台 是否正在运行) Judge whether the app is running (if the barrier-free permission is enabled, only
PyAibote/AndroidBotModel/EquipmentOperation.py:35
Methodaudio_file_to_text
音频文件转文本 Audio file to text file_path: 音频文件路径 language: 语言,参考开发文档 语言和发音人 zh-cn return: 转换
PyAibote/WindowsBotModel/VoiceService.py:25
Methodaudio_file_translation_text
麦克风输入流转换文本 Microphone input stream conversion text audio_path: 要翻译的音频文件路径 source_language: 要翻译的语言,参考
PyAibote/WindowsBotModel/VoiceService.py:113
Methodback
返回 return return: 成功返回True 失败返回False return: Returns True successfully, and returns False if it fail
PyAibote/AndroidBotModel/EquipmentOperation.py:195
Methodback
后退 go back return: 布尔值 return: bool
PyAibote/WebBotModel/PagesAndNavigation.py:36
Methodcall_phone
拨打电话 dial mobile: 手机号码 return: 成功返回True 失败返回False mobile: mobile phone number
PyAibote/AndroidBotModel/EquipmentOperation.py:235
Methodcheck_process
(self, process_name)
PyAibote/Tool/UniversalFunction.py:16
Methodclear_cache
清除缓存 Clear cache return: 布尔值 return: bool
PyAibote/WebBotModel/CookiesOperation.py:105
Methodclear_element
清除元素值 Clear element value xpath: xpath 路径 return: 布尔值 xpath: xpath path ret
PyAibote/WebBotModel/ElementOperation.py:157
Methodclear_script_widget
清除脚本控件 Clear script control return: True或者False return: True or False
PyAibote/AndroidBotModel/Control.py:156
Methodclick
点击坐标 Click coordinates point: x, y坐标 return: Ture 或者 False point: coordinates
PyAibote/AndroidBotModel/CoordinateOperation.py:9
Methodclick_alert
点击警告框 Click the warning box accept: 确认或取消 prompt_text: 可选参数,输入的警告框文本 return: 布尔值
PyAibote/WebBotModel/PopUpWindow.py:9
Methodclick_any_elements
遍历点击列表中的元素,直到任意一个元素返回 True Traverse the elements in the click list until any element returns True xpath_list: xp
PyAibote/AndroidBotModel/ElementOperation.py:163
Methodclick_element
点击元素 Click element xpath: 元素的 xpath 路径 return: 布尔值 xpath: xpath path of the element
PyAibote/WebBotModel/ElementOperation.py:144
Methodclick_element
点击元素 Click element hwnd: 窗口句柄 xpath: 元素路径 typ: 操作类型,单击左键:1 单击右键:2 按下左键:3 弹起左键:4 按下右键:5 弹
PyAibote/WindowsBotModel/ElementOperation.py:129
Methodclick_element_by_slide
滑动列表,查找并点击指定元素 Slide the list, find and click the specified element. xpath: xpath路径 distance: 滑动距离,默
PyAibote/AndroidBotModel/ElementOperation.py:261
Methodclick_mouse
点击鼠标 click the mouse point: 坐标点 typ: 点击类型,单击左键:1 单击右键:2 按下左键:3 弹起左键:4 按下右键:5 弹起右键:6 双击左键:7
PyAibote/WebBotModel/KeymouseOperation.py:53
Methodclick_mouse
鼠标点击 Mouse click hwnd: 当前窗口句柄 x: 横坐标 y: 纵坐标 typ: 点击类型,单击左键:1 单击右键:2 按下左键:3 弹
PyAibote/WindowsBotModel/KeymouseOperation.py:69
Methodclick_mouse_by_element
根据元素位置点击鼠标(元素中心点) xpath: 元素 xpath 路径 typ: 点击类型,单击左键:1 单击右键:2 按下左键:3 弹起左键:4 按下右键:5 弹起右键:6 双击左键:7 retu
PyAibote/WebBotModel/KeymouseOperation.py:9
Methodclone_audio_to_text
语音识别,需要部署服务端 Speech recognition requires the deployment of the server. lab_server_ip: lab服务端IP audio
PyAibote/WindowsBotModel/DigitalHumanOperation.py:408
next →1–100 of 402, ranked by callers