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
__init__
:param port: 端口 tcp 127.0.0.1:port :param config: 如oas1 :param log_queue: 一个输出到gui的Log队列
module/gui/process/script_process.py:12
Method
__init__
(self)
module/server/script_websocket.py:8
Method
__init__
(self, func: Callable[..., T])
module/server/setting.py:35
Method
__init__
(self)
module/server/main_manager.py:25
Method
__init__
(self, config_name: str)
module/server/script_process.py:21
Method
__init__
(self, next_run: datetime, limit_time: time, target_run: da
module/team_flow/task.py:14
Method
__init__
(self, username: str)
module/team_flow/player.py:13
Method
__init__
(self, team_flow: TeamFlow)
module/team_flow/mqtt.py:32
Method
__init__
(self, config: Config)
module/team_flow/host.py:32
Method
__init__
(self, _config: str, enable: bool=False)
module/notify/notify.py:18
Method
__init__
(self, *args, **kwargs)
module/daemon/daemon_base.py:5
Method
__init__
输入的是每一个ConfigModel的一个字段对象 :param data:
module/config/config.py:32
Method
__init__
:param config_name: :param task:
module/config/config.py:97
Method
__init__
(self, config: str)
module/config/config_modify.py:27
Method
__init__
(self, path, mode=DEFAULT_MODE, overwrite=False, **open_kwargs)
module/config/atomicwrites.py:142
Method
__init__
:param config_name:
module/config/config_model.py:123
Method
__init__
(self, config_name: str)
module/config/config_state.py:10
Method
__init__
(self)
module/config/config_menu.py:13
Method
__init__
image rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:45
Method
__init__
click rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:80
Method
__init__
long click rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:108
Method
__init__
swipe rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:137
Method
__init__
swipe rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:165
Method
__init__
List rule 提取 :param data: json解析后的数据
dev_tools/assets_extract.py:197
Method
__init__
assets 提取某个任务文件夹下的所以的资源 :param task_name: 任务名
dev_tools/assets_extract.py:248
Method
__init__
获取./tasks目录下的所有任务文件夹,遍历每一个任务文件夹提取assets
dev_tools/assets_extract.py:400
Method
__init__
(self, config: Config, device: Device)
tasks/base_task.py:41
Method
__init__
(self, check_button)
tasks/GameUi/page.py:11
Method
__iter__
(self)
module/map/map_grids.py:10
Method
__len__
(self)
module/map/map_grids.py:26
Method
__modify_schema__
( cls, field_schema: dict[str, Any], field: ModelField | None )
tasks/Component/config_base.py:30
Method
__modify_schema__
( cls, field_schema: dict[str, Any], field: ModelField | None )
tasks/Component/config_base.py:44
Method
__modify_schema__
( cls, field_schema: dict[str, Any], field: ModelField | None )
tasks/Component/config_base.py:52
Method
__modify_schema__
( cls, field_schema: dict[str, Any], field: ModelField | None )
tasks/Component/config_base.py:79
Method
__repr__
(self)
module/logger.py:309
Method
__repr__
(self)
tasks/Component/config_base.py:40
Method
__rich_console__
( self, console: Console, options: ConsoleOptions )
module/logger.py:291
Method
__setattr__
只要修改属性就会触发这个函数 自动保存 :param key: :param value: :return:
module/config/config_model.py:135
Method
__str__
(self)
module/atom/image.py:42
Method
__str__
(self)
module/base/timer.py:161
Method
__str__
(self)
module/map/map_grids.py:22
Method
__str__
(self)
module/map/map_grids.py:319
Method
__str__
(self)
module/device/connection.py:82
Method
__str__
(self)
module/device/method/utils.py:304
Method
__str__
(self)
module/config/config.py:65
Method
__str__
(self)
tasks/GameUi/page.py:24
Method
__str__
(self)
tasks/Component/config_base.py:37
Method
_check_ap_box
(appear: bool=False)
tasks/KekkaiUtilize/script_task.py:142
Method
_check_bought
检查是否已经购买, 弃用,无法识别任何文字 :return: True 已经购买
tasks/RichMan/shrine.py:51
Method
_check_exp_box
(appear: bool=False)
tasks/KekkaiUtilize/script_task.py:172
Method
_current_select_best
当前选中的最好的卡,(会自动和记录的最好的比较) 包括点击这种卡 :return: 返回当前选中的最好的卡, 如果什么的都没有,返回None
tasks/KekkaiUtilize/script_task.py:350
Method
_exit_to_realm
()
tasks/KekkaiUtilize/script_task.py:132
Method
_gui_set_status
设置给gui显示的状态 :param status: 可以在gui中显示的状态 有 "Init", "Empty"(不显示), "Run"(运行中), "Error", "Free"(空闲) :return:
script.py:233
Method
_gui_update_tasks
获取更新任务后 pending waiting 的任务 和 当前的任务的数据。打包给gui显示 :return:
script.py:204
Method
_minitouch_loop
(self)
module/device/method/minitouch.py:452
Method
_nc_server_host_port
Returns: str, int, str, int: server_listen_host, server_listen_port, client_connect_host, client_connect_port
module/device/connection.py:257
Method
_scrcpy_control
(self)
module/device/method/scrcpy/core.py:44
Method
_scrcpy_stream_loop
Core loop for video parsing
module/device/method/scrcpy/core.py:181
Method
adb
(self)
deploy/adb.py:23
Method
adb
(self)
module/device/connection_attr.py:265
Method
adb_backup
(self)
deploy/emulator.py:94
Method
adb_binary
(self)
deploy/emulator.py:90
Method
adb_binary
(self)
module/device/connection_attr.py:224
Method
adb_client
(self)
module/device/connection_attr.py:249
Method
adb_exec_out
(self, cmd, serial=None)
module/device/connection.py:387
Method
adb_recover
Revert adb replacement
deploy/emulator.py:151
Method
adb_recover
Revert adb replacement
deploy/emulator.py:369
Method
adb_replace
Backup the adb in emulator folder to xxx.bak, replace it with your adb. Need to call `adb kill-server` before replacing. Arg
deploy/emulator.py:130
Method
adb_reverse_remove
Equivalent to `adb -s <serial> reverse --remove <local>` Args: local (str): Such as 'tcp:2437'
module/device/connection.py:464
Method
add_by_eq
Another `add()` method, but de-duplicates with `__eq__` instead of `__hash__`. Args: grids(SelectedGrids): Retu
module/map/map_grids.py:194
Method
add_script_file
(self, file_name: str)
module/server/main_manager.py:46
Method
after_process
(self, result)
module/atom/ocr.py:20
Method
after_process
(self, result)
module/ocr/sub_ocr.py:66
Method
after_process
(self, result)
module/ocr/sub_ocr.py:96
Method
after_process
(self, result)
module/ocr/sub_ocr.py:124
Method
after_process
(self, result)
module/ocr/sub_ocr.py:158
Method
alive
alive :return:
module/gui/process/script_process.py:30
Method
answer
()
tasks/DemonEncounter/script_task.py:241
Method
app_check
()
tasks/GameUi/game_ui.py:92
Method
app_start
(self)
module/device/app_control.py:27
Method
app_stop
(self)
module/device/app_control.py:37
Method
area
(self)
module/device/method/utils.py:289
Function
area_cross_area
Args: area1: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). area2: (upper_left_x, upper_left_y, bottom_right_x, b
module/base/utils.py:327
Function
area_in_area
Args: area1: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). area2: (upper_left_x, upper_left_y, bottom_right_x, b
module/base/utils.py:310
Function
area_pad
Inner offset an area. Args: area: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). pad (int): Returns:
module/base/utils.py:213
Method
args
(self)
module/config/config_updater.py:16
Function
attr
(name, text)
module/logger.py:332
Function
attr_align
(name, text, front='', align=22)
module/logger.py:335
Method
back_boss
()
tasks/WeeklyTrifles/script_task.py:115
Method
back_or_turn_screen_on
If the screen is off, it is turned on only on ACTION_DOWN Args: action: ACTION_DOWN | ACTION_UP
module/device/method/scrcpy/control.py:123
Method
ball_number
!!! 弃用,原因是发现进行探查的时候会出现: 你的阴阳师会挡住球的位置,导致识别不到球 获取当前球的数量, 探查阶段优化使用的,但是在你抓完契灵后记得清空 :return:
tasks/BondlingFairyland/script_task.py:308
Method
balls_roi
获取球的五个位置是识别区域 :return:
tasks/BondlingFairyland/script_task.py:281
Method
balls_target
获取所有的球的图片 :return:
tasks/BondlingFairyland/script_task.py:269
Method
battle_config
(self)
tasks/Secret/script_task.py:35
Method
battle_config
(self)
tasks/Nian/script_task.py:131
Method
battle_wait
(self, random_click_swipt_enable: bool)
tasks/Tako/script_task.py:106
Method
battle_wait
重写, 阴界之门: 胜利后回到狩猎战的主界面 麒麟: 胜利后回到麒麟的主界面 :param random_click_swipt_enable: :return:
tasks/Hunt/script_task.py:129
Method
battle_wait
(self, random_click_swipt_enable: bool)
tasks/Secret/script_task.py:241
Method
battle_wait
重写战斗等待 # https://github.com/runhey/OnmyojiAutoScript/issues/95 :param random_click_swipt_enable: :return:
tasks/Orochi/script_task.py:415
Method
battle_wait
(self, random_click_swipt_enable: bool)
tasks/GoldYoukai/script_task.py:77
← previous
next →
801–900 of 1,281, ranked by callers