Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/runhey/OnmyojiAutoScript
/ functions
Functions
1,281 in github.com/runhey/OnmyojiAutoScript
⨍
Functions
1,281
◇
Types & classes
410
↳
Endpoints
15
Method
get_client
get_client :param config: :return:
module/gui/context/process_manager.py:193
Method
get_clipboard
Get clipboard
module/device/method/scrcpy/control.py:153
Method
get_fileobject
Return the temporary file to use.
module/config/atomicwrites.py:188
Method
get_group_assets
(group: int)
tasks/Component/SwitchSoul/switch_soul.py:69
Function
get_server_last_update
Args: daily_trigger (list[str], str): [ "00:00", "12:00", "18:00",] Returns: datetime.datetime
module/config/utils.py:188
Method
get_team_asset
(team: int)
tasks/Component/SwitchSoul/switch_soul.py:81
Method
git
(self)
deploy/git.py:10
Method
gui_args
获取给gui显示的参数 :return:
script.py:134
Method
gui_args
获取显示task的gui参数 :param config: :param task: :return:
module/gui/context/process_manager.py:231
Method
gui_args
获取给gui显示的参数 :return:
module/config/config.py:127
Method
gui_args
获取给gui显示的参数 :return:
module/config/config_modify.py:31
Method
gui_args
返回提供给gui显示的参数 :param task: 输入的是任务的名称英文 如'Script' 或者是'script'都是可以的 :return: 返回的是pydantic给我们结构化的输出的信息, 如果不能获取就返回空的str
module/config/config_model.py:169
Method
gui_menu
获取给gui显示的菜单 :return:
script.py:141
Method
gui_menu
get_gui_menu :param config: :return:
module/gui/context/process_manager.py:206
Method
gui_menu
生成的是json字符串 :return:
module/config/config_menu.py:39
Method
gui_menu_list
(self)
module/config/config_menu.py:47
Method
gui_mirror_image
获取给gui显示的镜像 :return: cv2的对象将 numpy 数组转换为字节串。接下来MsgPack 进行序列化发送方将图像数据转换为字节串
script.py:193
Method
gui_mirror_image
:param config: :return:
module/gui/context/process_manager.py:324
Method
gui_set_task
设置给gui显示的任务 的参数的具体值 :return:
script.py:155
Method
gui_set_task
设置给gui显示的任务 的参数的具体值 :return:
module/config/config_modify.py:45
Method
gui_set_task_bool
设置task的gui 是bool类型的 :param config: :param task: :param group: :param arg: :param value: :re
module/gui/context/process_manager.py:282
Method
gui_set_task_number
设置task的gui 是float类型的或者是int :param config: :param task: :param group: :param arg: :param value:
module/gui/context/process_manager.py:303
Method
gui_task
获取给gui显示的任务 的参数的具体值 :return:
script.py:148
Method
gui_task
获取显示task的gui :param config: :param task: :return:
module/gui/context/process_manager.py:246
Method
gui_task
获取给gui显示的任务 的参数的具体值 :return:
module/config/config_modify.py:38
Method
gui_task
返回提供给gui显示的参数 :param task: :return:
module/config/config_model.py:193
Method
gui_task_list
(self, config: str)
module/gui/context/process_manager.py:355
Method
gui_task_list
获取给gui显示的任务列表 :return:
module/config/config_modify.py:73
Method
handle_control_check
(self, button)
module/device/device.py:141
Function
handle_num2pid
通过句柄号获取句柄进程id,如果句柄号非法则返回0 :param num: :return:
module/device/handle.py:51
Function
has_cached_property
Check if a property is cached. Args: obj: name (str):
module/base/decorator.py:119
Method
home_explore
使用ocr识别到探索按钮并点击 :return:
tasks/GameUi/game_ui.py:38
Method
home_main
从庭院到活动的爬塔界面 :return:
tasks/Component/BaseActivity/base_activity.py:13
Function
home_menu
()
module/server/home_router.py:22
Function
home_test
()
module/server/home_router.py:16
Function
hr
(title, level=3)
deploy/logger.py:17
Function
hr
(title, level=3)
module/logger.py:317
Method
id_and_serial
Returns: list[str, str]: List of multi_id and serial.
module/device/emulator.py:43
Method
id_and_serial
(self)
module/device/emulator.py:77
Method
image
获取图片 :return:
module/atom/image.py:76
Method
image
(self)
module/gui/register_type/paint_image.py:27
Function
image_left_strip
In `DAILY:200/200` strip `DAILY:` and leave `200/200` Args: image (np.ndarray): (height, width) threshold (int):
module/base/utils.py:813
Method
init
(cls)
module/server/setting.py:65
Function
inject
Inject control code, with this inject, we will be able to do unit test Args: control_type: event to send, TYPE_*
module/device/method/scrcpy/control.py:9
Function
inner
(self, *args, **kwargs)
module/device/method/scrcpy/control.py:19
Method
intersect
Args: grids(SelectedGrids): Returns: SelectedGrids:
module/map/map_grids.py:211
Method
intersect_by_eq
Another `intersect()` method, but de-duplicates with `__eq__` instead of `__hash__`. Args: grids(SelectedGrids):
module/map/map_grids.py:221
Method
invite
(add_button)
tasks/WantedQuests/script_task.py:238
Method
invite_again
作为队长战斗胜利后再次邀请队友, :param default_invite: 是否勾选默认 :return:
tasks/Component/GeneralInvite/general_invite.py:471
Method
is_avd
(self)
module/device/connection.py:247
Method
is_bluestacks4_hyperv
(self)
module/device/connection_attr.py:107
Method
is_bluestacks5_hyperv
(self)
module/device/connection_attr.py:111
Method
is_bluestacks_hyperv
(self)
module/device/connection_attr.py:115
Method
is_chinac_phone_cloud
(self)
module/device/connection_attr.py:139
Method
is_default_mode
是否是默认模式 :return:
module/atom/swipe.py:34
Method
is_emulator
(self)
module/device/connection_attr.py:127
Method
is_in_evozone
(screenshot=False)
tasks/EvoZone/script_task.py:284
Method
is_in_fallen_sun
(screenshot=False)
tasks/FallenSun/script_task.py:262
Method
is_in_orochi
(screenshot=False)
tasks/Orochi/script_task.py:277
Method
is_mumu_family
(self)
module/device/connection_attr.py:123
Method
is_network_device
(self)
module/device/connection_attr.py:131
Method
is_over_http
(self)
module/device/connection_attr.py:135
Method
is_template_match
是否是模板匹配 :return:
module/atom/image.py:86
Method
is_vector_mode
是否是向量模式 :return:
module/atom/swipe.py:42
Method
is_wsa
(self)
module/device/connection_attr.py:119
Function
iter_folder
Args: folder (str): is_dir (bool): True to iter directories only ext (str): File extension, such as `.yaml` Yields:
deploy/utils.py:33
Method
keycode
Send keycode to device Args: keycode: const.KEYCODE_* action: ACTION_DOWN | ACTION_UP repeat: re
module/device/method/scrcpy/control.py:48
Function
kill_server
()
module/server/home_router.py:43
Method
left_join
Args: right (SelectedGrids): Right table to join on_attr: set_attr: default: Returns
module/map/map_grids.py:102
Method
limit_time
(self)
tasks/BondlingFairyland/script_task.py:472
Function
load_image
Load an image like pillow and drop alpha channel. Args: file (str): area (tuple): Returns: np.ndarray:
module/base/utils.py:502
Method
location
Returns: list[tuple]:
module/map/map_grids.py:36
Function
location2node
Convert location tuple to an Excel-like cell. Accept negative values also. -2 -1 0 1 2 3 -2 -B-2 -A-2 A-2 B-2
module/base/utils.py:461
Method
lock_config
(self)
module/config/config.py:124
Method
log_thread_func
log线程函数,将queue中的信息解析 :param config_name: :return:
module/gui/context/process_manager.py:386
Method
long_click_adb
:param x: :param y: :param duration: 单位是s :return:
module/device/method/adb.py:189
Method
long_click_methods
(self)
module/device/control.py:31
Method
long_click_minitouch
(self, x, y, duration=1.0)
module/device/method/minitouch.py:530
Method
long_click_scrcpy
(self, x, y, duration=1.0)
module/device/method/scrcpy/scrcpy.py:104
Method
long_click_uiautomator2
(self, x, y, duration=(1, 1.2))
module/device/method/uiautomator_2.py:138
Method
main_home
从活动的爬塔界面到庭院 :return:
tasks/Component/BaseActivity/base_activity.py:21
Method
match
使用ocr获取结果后和keyword进行匹配 :param result: :param included: ocr结果和keyword是否包含关系, 要么是包含关系,要么是相等关系 :return:
module/ocr/base_ocr.py:188
Method
match_layer
(self)
tasks/Secret/script_task.py:25
Method
match_topic
(self)
module/team_flow/host.py:40
Method
matched
(obj)
module/map/map_grids.py:75
Function
mergeArgument
* 合并某个group的参数组, * @param {Object} argument * @param {Object} values * @returns {Object} - 就是添加了value这个一个值
module/gui/qml/Component/ModelParse.js:118
Method
merge_value
(groups, jsons, definitions)
module/config/config_model.py:300
Method
minicap_check
()
tasks/GameUi/game_ui.py:97
Method
minicap_urls
Don't install minicap on emulators, return empty urls. binary from https://github.com/openatx/stf-binaries only got abi: arm
module/device/method/utils.py:238
Method
minitouch_builder
(self)
module/device/method/minitouch.py:364
Method
model
(self)
module/ocr/base_ocr.py:89
Method
mqtt_loop
(self)
module/team_flow/mqtt.py:115
Method
mr_validator
(cls, v)
tasks/CollectiveMissions/config.py:21
Method
multi_click
也是不能用button的逻辑 :param button: :param n: :param interval: :return:
module/device/control.py:84
Method
mumu_head_height
不同mumu模拟器的头部高度不同 :return:
module/device/method/window.py:114
Method
name
:return:
module/atom/image.py:35
Method
name
(self)
module/device/method/utils.py:273
Function
name_to_function
Args: name (str): Returns: Function:
module/config/config.py:81
Method
nc_command
Returns: list[str]: ['nc'] or ['busybox', 'nc']
module/device/connection.py:320
Function
node2location
See location2node() Args: node (str): Example: 'E3' Returns: tuple[int]: Example: (4, 2)
module/base/utils.py:439
← previous
next →
1,001–1,100 of 1,281, ranked by callers