MCPcopy Create free account

hub / github.com/a943512/PyAibote / functions

Functions402 in github.com/a943512/PyAibote

Methodclose_current_page
关闭当前页面 Close the current page return: 布尔值 return: bool
PyAibote/WebBotModel/PagesAndNavigation.py:105
Methodclose_driver
关闭连接 Close the connection
PyAibote/AndroidBotModel/EquipmentOperation.py:476
Methodclose_driver
关闭WebDriver.exe驱动程序,服务端会抛错 Close the WebDriver.exe driver. return: 布尔值 return: bool
PyAibote/WebBotModel/DrivingOperation.py:9
Methodclose_driver
远程部署时关闭WindowsDriver.exe驱动程序 Close the WindowsDriver.exe driver return: 布尔值 return: bool
PyAibote/WindowsBotModel/DrivingOperation.py:9
Methodclose_driver_local
本地部署时关闭WindowsDriver.exe驱动程序(避免堆积大量WindowsDriver.exe进程占用系统资源) Close the WindowsDriver.exe driver return: 布尔值
PyAibote/WindowsBotModel/DrivingOperation.py:20
Methodclose_mysql
(self)
PyAibote/Tool/DatabaseFunc.py:165
Methodclose_sqlite3
关闭sqlite3数据库 Close the sqlite3 database return: 布尔值 return: boolean value
PyAibote/Tool/Sqlite3DataBase.py:96
Methodclose_window
关闭窗口 Close the window hwnd: 窗口句柄 xpath: 元素路径 return: 成功返回True 失败返回 False h
PyAibote/WindowsBotModel/ElementOperation.py:303
Methodcompare_color
比较指定坐标点的颜色值 Compare the color values of the specified coordinate points hwnd: 窗口句柄; main_x: 主颜色所在的X坐
PyAibote/WindowsBotModel/ColorOperation.py:140
Methodconvert_coordinates
(x, y, resolution_a, resolution_b)
PyAibote/AndroidBotModel/EquipmentOperation.py:452
Methodconvert_coordinates
(x, y, resolution_a, resolution_b)
PyAibote/WindowsBotModel/WindowOperation.py:206
Methodcoordinate_transform
根据屏幕分辨率缩放比例,进行不同分辨率坐标转换 According to the screen resolution scaling, coordinate conversion with different resolutions is carri
PyAibote/AndroidBotModel/EquipmentOperation.py:436
Methodcoordinate_transform
根据屏幕分辨率缩放比例,进行不同分辨率坐标转换 According to the screen resolution scaling, coordinate conversion with different resolutions is carri
PyAibote/WindowsBotModel/WindowOperation.py:190
Methodcreate_check_box
创建复选框控件 Create a check box control _id: 控件ID,不可与其他控件重复 text: 控件文本 coordinate: x,y坐标 默
PyAibote/AndroidBotModel/Control.py:51
Methodcreate_edit_view
创建编辑框控件 Create an edit box control _id: 控件ID,不可与其他控件重复 text: 控件文本 coordinate: x,y坐标 默认
PyAibote/AndroidBotModel/Control.py:30
Methodcreate_list_text
创建ListText控件 Create ListText control _id: 控件ID,不可与其他控件重复 hint_text: 提示文本 list_text: 下
PyAibote/AndroidBotModel/Control.py:97
Methodcreate_switch_button
创建SwitchButton控件 Create a SwitchButton control _id: 控件ID,不可与其他控件重复 text: 控件文本 coordina
PyAibote/AndroidBotModel/Control.py:74
Methodcreate_text_view
创建文本框控件 Create a text box control _id: 控件ID,不可与其他控件重复 text: 控件文本 coordinate 默认 (400,
PyAibote/AndroidBotModel/Control.py:9
Methodcreate_web_view
创建WebView控件(直接会打开浏览器进入页面) Create a WebView control (which will directly open the browser to enter the page) _id:
PyAibote/AndroidBotModel/Control.py:120
Methodcrop_image
裁剪图片 Crop a picture image_path: 图片路径 save_path: 裁剪后保存的图片路径 left: 裁剪的左上角横坐标 t
PyAibote/WindowsBotModel/ColorOperation.py:193
Methoddelete_all_cookies
删除所有 Cookie Delete all Cookie return: 布尔值 return: bool
PyAibote/WebBotModel/CookiesOperation.py:95
Methoddelete_android_file
删除安卓文件 Delete Android files remote_path: 安卓文件路径 return: 成功返回True 失败返回False remote_path:
PyAibote/AndroidBotModel/EquipmentOperation.py:421
Methoddelete_cookies
删除指定 Cookie Delete the specified Cookie name: 要删除的 Cookie 的名称 url: 删除所有匹配 url 和 name 的 Cookie
PyAibote/WebBotModel/CookiesOperation.py:75
Methoddelete_mysql
删除MySql数据库数据 Delete multiple MySql database data sql: sql语句 return: 成功返回True, 失败返回False sql: sql statement return: True on succes
PyAibote/Tool/DatabaseFunc.py:97
Methoddouble_click
双击坐标 Double-click coordinates point: 坐标 return: Ture 或者 False point: coordinates
PyAibote/AndroidBotModel/CoordinateOperation.py:22
Methoddownload_file
下载下载网络文件到手机 Download download network files to your mobile phone url: 请求网络文件的地址 savePath: 文件保存到手机哪个位
PyAibote/AndroidBotModel/UrlRequest.py:32
Methoddownload_file
下载文件 Download file url: 文件地址 file_path: 文件保存的路径 is_wait: 是否等待下载完成 return: 总
PyAibote/WindowsBotModel/OtherOperations.py:9
Methodelement_is_selected
判断元素是否选中 Determine whether the element is selected xpath: xpath 路径 return: 成功返回True 失败返回False
PyAibote/AndroidBotModel/ElementOperation.py:248
Methodenable_network
启用网络数据监听,此函数一般在goto、点击跳转等操作 前调用。可多次调用监听多个目标 Enable network data monitoring. This function is generally called before operatio
PyAibote/WebBotModel/PagesAndNavigation.py:146
Methoderror_captcha
识别报错返分 Identify and report errors and return points username: 用户名 password: 密码 soft_id:
PyAibote/AndroidBotModel/VerificationCodeOperation.py:46
Methoderror_captcha
识别报错返分 Identify and report errors and return points username: 用户名 password: 密码 soft_id:
PyAibote/WindowsBotModel/VerificationCodeOperation.py:64
Methodexecute
(self, IP: str, Port: int, Debug: bool = True, Qt = None, WebsocketSwitch = False, WebsocketPort = 8888)
PyAibote/WindowsBot.py:103
Methodexecute
(self, IP: str, Port: int, Debug: bool = True, Qt = None, WebsocketSwitch = False, WebsocketPort = 8888)
PyAibote/DigitalHumanBot.py:55
Methodexecute
(self, IP: str, Port, Qt = None, WebsocketSwitch = False, WebsocketPort = 8888)
PyAibote/AndroidBot.py:64
Methodexecute_command
执行cmd命令 Execute cmd command command: cmd命令,不能含 "cmd"字串 wait_timeout: 可选参数,等待结果返回超时,单位毫秒,默认3秒
PyAibote/WindowsBotModel/SystemOperation.py:51
Methodexists_android_file
安卓文件是否存在 Does the Android file exist remote_path: 安卓文件路径 return: 存在返回True 不存在返回False Re
PyAibote/AndroidBotModel/EquipmentOperation.py:371
Methodextract_audio
复制视频中的音频为mp3文件 Copy the audio in the video as an mp3 file. video_path: 视频文件路径 音频文件保存为mp3和视频在一个目录 ret
PyAibote/WindowsBotModel/DigitalHumanOperation.py:520
Methodextract_image_by_video
提取视频帧 Extract video frames video_path: 视频路径 save_folder: 提取的图片保存的文件夹目录 jump_frame: 跳帧,默认
PyAibote/WindowsBotModel/ColorOperation.py:176
Methodfind_color
获取指定色值的坐标点,返回坐标或者 None Gets the coordinate point of the specified color value, and returns the coordinate or None
PyAibote/AndroidBotModel/ColorFindingOperation.py:26
Methodfind_color
获取指定色值的坐标点,返回坐标或者 None Gets the coordinate point of the specified color value, and returns the coordinate or None
PyAibote/WindowsBotModel/ColorOperation.py:93
Methodfind_desktop_window
查找桌面窗口句柄 Find the desktop window handle return: 桌面窗口句柄或None return: Desktop window handle or None
PyAibote/WindowsBotModel/WindowOperation.py:83
Methodfind_dynamic_image
找动态图,对比同一张图在不同时刻是否发生变化,返回坐标列表 Find the dynamic diagram, compare whether the same diagram has changed at different times, and
PyAibote/AndroidBotModel/MapFindingOperation.py:88
Methodfind_dynamic_image
找动态图,对比同一张图在不同时刻是否发生变化,返回坐标列表 Find the dynamic diagram, compare whether the same diagram has changed at different times, and
PyAibote/WindowsBotModel/ColorOperation.py:291
Methodfind_images
寻找图片坐标,在当前屏幕中寻找给定图片中心点的坐标,返回坐标列表(如果想拿一个坐标取第一个坐标元祖即可) Find the coordinates of the picture, find the coordinates of the center
PyAibote/AndroidBotModel/MapFindingOperation.py:9
Methodfind_images
寻找图片坐标,在当前屏幕中寻找给定图片中心点的坐标,返回坐标列表 Find picture coordinates, find the coordinates of the center point of a given picture in the
PyAibote/WindowsBotModel/ColorOperation.py:216
Methodfind_parent_window
查找父窗口句柄 Find the parent window handle hwnd: 当前窗口句柄 return: 父窗口句柄或 None hwnd: Current wi
PyAibote/WindowsBotModel/WindowOperation.py:67
Methodfind_sub_window
查找子窗口句柄 Find child window handle hwnd: 当前窗口句柄 class_name: 窗口类名 window_name: 窗口名
PyAibote/WindowsBotModel/WindowOperation.py:47
Methodfind_text
查找文字所在的坐标,返回坐标列表(坐标是文本区域中心位置) Find the coordinates of the text and return a list of coordinates (coordinates are the center o
PyAibote/AndroidBotModel/OcrCorrelation.py:109
Methodfind_text
通过 OCR 识别窗口/图片中的文字 Recognize the characters in the window/picture through OCR, and return the coordinate list oc
PyAibote/WindowsBotModel/OcrOperation.py:129
Methodfind_window
查找窗口句柄,仅查找顶级窗口,不包含子窗口 Find the window handle, only the top-level window, not the child window class_name: 窗口类名
PyAibote/WindowsBotModel/WindowOperation.py:11
Methodforward
前进 go move return: 布尔值 return: bool
PyAibote/WebBotModel/PagesAndNavigation.py:46
Methodgesture
执行手势 Execute a gesture gesture_path: 手势路径,由一系列坐标点组成 duration: 手势执行时长, 单位秒 return: Ture 或
PyAibote/AndroidBotModel/CoordinateOperation.py:67
Methodgestures
执行多个手势 Perform multiple gestures [[duration, [x1, y1], [x1, y1]...],[duration, [x1, y1], [x1, y1]...]]
PyAibote/AndroidBotModel/CoordinateOperation.py:88
Methodget_access_token
使用 AK,SK 生成鉴权签名(Access Token) :return: access_token,或是None(如果错误)
PyAibote/CommonUse/ChatGenerative.py:27
Methodget_activity
获取活动页 Get active page return: 当前的窗口UI名称 return: the current UI name of the window
PyAibote/AndroidBotModel/EquipmentOperation.py:263
Methodget_alert_text
获取警告框文本 Get warning box text return: 警告框文本字符串 return: Return: warning box text string
PyAibote/WebBotModel/PopUpWindow.py:24
Methodget_all_cookies
获取浏览器所有的Cookies Get all the Cookies return: 列表格式的 cookies return: cookies in list format
PyAibote/WebBotModel/CookiesOperation.py:27
Methodget_all_page_id
获取所有页面 ID Get all page ids return: 所有页面ID,找不到则返回空列表[] return: all page ID, or an empty list [] if it
PyAibote/WebBotModel/PagesAndNavigation.py:79
Methodget_android_sub_files
获取文件夹内的所有文件(不包含深层子目录) Get all files in the folder (excluding deep subdirectories) android_directory: 安卓目录,默认为根目录
PyAibote/AndroidBotModel/EquipmentOperation.py:387
Methodget_captcha
识别验证码 Identification verification code file_path: 图片文件路径 username: 用户名 password: 密码
PyAibote/AndroidBotModel/VerificationCodeOperation.py:9
Methodget_captcha
识别验证码 Identification verification code file_path: 图片文件路径 username: 用户名 password: 密码
PyAibote/WindowsBotModel/VerificationCodeOperation.py:10
Methodget_clipboard_text
获取剪切板内容(需要开启Aibote输入法) Get the clipboard content return: 剪切板内容 return: Clipboard content
PyAibote/AndroidBotModel/EquipmentOperation.py:298
Methodget_clipboard_text
获取剪切板内容 Get the clipboard content return: 剪切板内容 return: Shear board content
PyAibote/WindowsBotModel/SystemOperation.py:23
Methodget_color
获取指定坐标点的色值 Gets the color value of the specified coordinate point. point: x, y坐标点 return: 色值字符串(例如:
PyAibote/AndroidBotModel/ColorFindingOperation.py:10
Methodget_color
获取指定坐标点的色值 Gets the color value of the specified coordinate point and returns the color value string (#008577) or None
PyAibote/WindowsBotModel/ColorOperation.py:71
Methodget_cookies
获取指定 url 的 Cookies Get Cookies for the specified url url: url 字符串 return: 布尔值 url: url
PyAibote/WebBotModel/CookiesOperation.py:10
Methodget_current_page_id
获取当前页面 ID Get the current page ID return: 字符串, 找不到页面则返回None return: str or None if not found Page
PyAibote/WebBotModel/PagesAndNavigation.py:66
Methodget_current_title
获取当前页面标题 Get the current page title return:当前页面标题 或 None return:current page title or None
PyAibote/WebBotModel/PagesAndNavigation.py:132
Methodget_current_url
获取当前页面 URL Get URL of current page return: 当前页面URL 或 None return: URL of current page or None
PyAibote/WebBotModel/PagesAndNavigation.py:115
Methodget_device_ip
获取设备IP地址 Get the device IP address return: 设备IP地址字符串 return: device IP address string
PyAibote/AndroidBotModel/EquipmentOperation.py:105
Methodget_element_attr
获取元素HTML属性 Gets the HTML attribute of the element xpath: xpath 路径 attr_name: 属性名称 return
PyAibote/WebBotModel/ElementOperation.py:99
Methodget_element_desc
获取元素描述 Get element description xpath: xpath 路径 wait_time: 等待时间,默认取 5秒 interval_time: 轮询间
PyAibote/AndroidBotModel/ElementOperation.py:61
Methodget_element_inner_html
获取元素的HTML所有子节点不包含对象本身 Gets the HTML of the element. All child nodes do not contain the object itself xpath: xpat
PyAibote/WebBotModel/ElementOperation.py:67
Methodget_element_name
获取元素名称 Get the element name hwnd: 窗口句柄 xpath: 元素路径 wait_time: 等待时间,默认取 5秒 in
PyAibote/WindowsBotModel/ElementOperation.py:11
Methodget_element_outer_html
获取元素的HTML包含对象本身以及所有子节点 Gets the HTML of the element including the object itself and all child nodes xpath: xpath
PyAibote/WebBotModel/ElementOperation.py:51
Methodget_element_rect
获取元素矩形坐标 Get rectangular coordinates of elements xpath: xpath 路径 return: 元素矩形坐标或None xp
PyAibote/WebBotModel/ElementOperation.py:258
Methodget_element_rect
获取元素矩形,返回左上和右下坐标 Gets an element rectangle and returns the upper left and lower right coordinates. hwnd: 窗口句柄
PyAibote/WindowsBotModel/ElementOperation.py:66
Methodget_element_text
获取元素文本 Get element text xpath: xpath 路径 wait_time: 等待时间,默认取 5秒 interval_time: 轮询间隔时间,默认取
PyAibote/AndroidBotModel/ElementOperation.py:86
Methodget_element_text
获取元素文本 Get element text xpath: 元素的 xpath 路径 return: 元素文本字符串或 None xpath: xpath path of
PyAibote/WebBotModel/ElementOperation.py:83
Methodget_element_value
获取input编辑框中的值 Gets the value in the input edit box xpath: input输入框中的xpath路径 return: 成功返回input输入框的值失败
PyAibote/WebBotModel/ElementOperation.py:117
Methodget_element_value
获取元素文本(可编辑的那种文本) Gets the element text (editable text) hwnd: 窗口句柄 xpath: 元素路径 wait_time:
PyAibote/WindowsBotModel/ElementOperation.py:39
Methodget_element_window
获取元素窗口句柄 Get the element window handle hwnd: 窗口句柄 xpath: 元素路径 wait_time: 等待时间,默认取 5秒
PyAibote/WindowsBotModel/ElementOperation.py:101
Methodget_elements
获取可见区域内的所有元素信息 return: 成功返回数组json格式的元素信息,失败返回null Get information of all elements in the visible area
PyAibote/AndroidBotModel/ElementOperation.py:310
Methodget_elements
获取可见区域内的所有元素信息 return: 成功返回数组json格式的元素信息,失败返回null Get information of all elements in the visible area
PyAibote/WebBotModel/ElementOperation.py:338
Methodget_elements
获取可见区域内的所有元素信息 Get information of all elements in the visible area hwnd: 窗口句柄 return: 成功返回数组json格式的元
PyAibote/WindowsBotModel/ElementOperation.py:335
Methodget_extend_param
获取驱动程序命令行参数(不包含ip和port) Get the driver command line parameters (excluding ip and port) return: 成功返回参数,失败返回None
PyAibote/WindowsBotModel/DrivingOperation.py:47
Methodget_group
获取投屏组号 Get the projection group number return: app上的投屏组号 return: Projection group number on the app
PyAibote/AndroidBotModel/EquipmentOperation.py:69
Methodget_group_id
获取投屏组号 Get the projection group number return: 组号 return: group number
PyAibote/AndroidBotModel/ScreenProjectionOperation.py:9
Methodget_identifier
获取投屏编号 Get the projection number return: 编号 return: number
PyAibote/AndroidBotModel/ScreenProjectionOperation.py:20
Methodget_identifier
获取投屏编号 Get the projection number return: app上的投屏编号 return: Projection number on the app
PyAibote/AndroidBotModel/EquipmentOperation.py:80
Methodget_image_size
获取图片大小 Get the picture size image_path: 图片路径 return: 图片大小, 字典格式, 失败返回 {'width': -1.0, 'height': -1.0
PyAibote/AndroidBotModel/EquipmentOperation.py:138
Methodget_installed_packages
获取已安装app的包名(不包含系统APP) Gets the package name of the installed APP (excluding the system app) return: 包名列表 或者 空[]
PyAibote/AndroidBotModel/EquipmentOperation.py:45
Methodget_package
获取包名 Get package name return: 包名称:"com.aibot.client" return: package name: "com.aibot.client"
PyAibote/AndroidBotModel/EquipmentOperation.py:274
Methodget_script_params
获取脚本配置参数(等待用户提交控件数据) Get script configuration parameters (wait for the user to submit control data) return: 用户提交
PyAibote/AndroidBotModel/Control.py:139
Methodget_switch_action_state
获取切换人物形象动作状态 Obtain that action state of switching the character image return: True或者False retur
PyAibote/WindowsBotModel/DigitalHumanOperation.py:358
Methodget_text
通过 OCR 识别屏幕中的文字,返回文字列表 ocr_server_id: ocr服务端IP,端口固定为9527。当参数值为 "127.0.0.1"时,则使用手机内置的ocr识别 region: 识别区域,默认全屏;
PyAibote/AndroidBotModel/OcrCorrelation.py:72
Methodget_text
通过 OCR 识别窗口/图片中的文字, Recognize the characters in the window/picture through OCR, and return to the text list ocr_
PyAibote/WindowsBotModel/OcrOperation.py:86
Methodget_title
获取投屏标题 Get the title of the projection screen return: 标题 return: title
PyAibote/AndroidBotModel/ScreenProjectionOperation.py:31
Methodget_title
获取投屏标题 Get the title of the projection screen return: app上的标题信息 return: Title information on the app
PyAibote/AndroidBotModel/EquipmentOperation.py:58
Methodget_websocket_data
获取WebSocket传递过来的数据 Get the data passed by WebSocket return: 成功返回字典,失败返回空字典 return: The dictionary wa
PyAibote/Tool/WebsocketsServer.py:105
← previousnext →101–200 of 402, ranked by callers