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
↓ 3 callers
Function
read_file
Read a file, support both .yaml and .json format. Return empty dict if file not exists. Args: file (str): Returns:
module/config/utils.py:32
↓ 3 callers
Method
release_during_wait
(self)
module/device/device.py:96
↓ 3 callers
Method
reset
add minitouch command: 'r\n'
module/device/method/minitouch.py:228
↓ 3 callers
Method
set_shikigami
要求在式神育成的界面 选择式神 1-7 :param stop_image: 结束的图片,如果不出现就结束 :param shikigami_order: :return:
tasks/Component/ReplaceShikigami/replace_shikigami.py:71
↓ 3 callers
Method
set_switch_area
设置开关的区域 :param area: :return:
tasks/Component/GeneralBuff/general_buff.py:73
↓ 3 callers
Method
show
+--------------+--------+--------+ | Screenshot | time | Speed | +--------------+--------+--------+ | ADB
module/daemon/benchmark.py:101
↓ 3 callers
Method
shrine_check_money
(self, mix: int)
tasks/RichMan/shrine.py:39
↓ 3 callers
Method
sort
Args: args (str): Attribute name to sort. Returns: SelectedGrids:
module/map/map_grids.py:249
↓ 3 callers
Method
soul
御魂buff :param is_open: 是否打开 :return:
tasks/Component/GeneralBuff/general_buff.py:255
↓ 3 callers
Method
started
(self)
module/base/timer.py:107
↓ 3 callers
Method
stop
stop the process 是强制的,不会等待子进程结束 :return:
module/gui/process/script_process.py:53
↓ 3 callers
Method
task_call
回调任务,这会是在任务结束后调用 :param task: 调用的任务的大写名称 :param force_call: :return:
module/config/config.py:250
↓ 3 callers
Method
tt_check_money
(self, mix: int)
tasks/RichMan/thousand_things.py:124
↓ 3 callers
Method
type
输入模型的键值,获取这个字段对象的类型 比如输入是orochi输出是Orochi :param key: :return:
module/config/config_model.py:214
↓ 3 callers
Method
wait_until
Wait until a specific time. Args: future (datetime): Returns: bool: True if wait finished, False if
script.py:267
↓ 3 callers
Method
write_json
:param config_name: 不带后缀 :param data: 字典而不是字符串 :return:
module/config/config_model.py:159
↓ 2 callers
Method
__init__
(self)
module/gui/fluent_app.py:110
↓ 2 callers
Method
_config_to_player
作为主角, 更新自身的多人任务的缓存 也就是从 config -> multi_tasks :return:
module/team_flow/host.py:74
↓ 2 callers
Method
_enter_scales
进入密卷屋 蛇皮 :return:
tasks/RichMan/mall/navbar.py:24
↓ 2 callers
Method
_execute
Returns: Object: Stdout(str) of cmd if output, return code(int) of cmd if not output.
deploy/emulator.py:242
↓ 2 callers
Function
_handle_errors
(rv)
module/config/atomicwrites.py:79
↓ 2 callers
Method
_minitouch_loop_run
Args: event: Async function Raises: MinitouchOccupiedError
module/device/method/minitouch.py:455
↓ 2 callers
Function
_proper_fsync
(fd)
module/config/atomicwrites.py:41
↓ 2 callers
Method
_scales_buy_confirm
(self, start_click, number: int = None)
tasks/RichMan/mall/scales.py:34
↓ 2 callers
Method
_scales_buy_sea_more
(self, start_click, number: int = None)
tasks/RichMan/mall/scales.py:86
↓ 2 callers
Method
_scrcpy_server_stop
Stop listening (both threaded and blocked)
module/device/method/scrcpy/core.py:144
↓ 2 callers
Method
_share_secret
秘闻分享 :return:
tasks/WeeklyTrifles/script_task.py:159
↓ 2 callers
Method
_type
(cls, type, x, numberList)
module/atom/cBezier.py:31
↓ 2 callers
Method
_type
(cls, type, x, numberList)
module/base/cBezier.py:32
↓ 2 callers
Method
adb_disconnect
(self, serial)
module/device/connection.py:553
↓ 2 callers
Method
adb_forward
Do `adb forward <local> <remote>`. choose a random port in FORWARD_PORT_RANGE or reuse an existing forward, and also remove r
module/device/connection.py:391
↓ 2 callers
Method
adb_kill
(self)
deploy/emulator.py:300
↓ 2 callers
Method
adb_reverse
(self, remote)
module/device/connection.py:429
↓ 2 callers
Method
app_handle_login
(self)
tasks/Restart/login.py:89
↓ 2 callers
Method
app_stop
(self)
module/device/device.py:214
↓ 2 callers
Method
app_stop
(self)
tasks/Restart/script_task.py:28
↓ 2 callers
Method
back_mall
返回商城 :return:
tasks/RichMan/mall/navbar.py:86
↓ 2 callers
Method
battle_wait
等待战斗结束 !!! 很重要 这个函数是原先写的, 优化版本在tasks/Secret/script_task下。本着不改动原先的代码的原则,所以就不改了 :param random_click_swipt_enable: :retu
tasks/Component/GeneralBattle/general_battle.py:154
↓ 2 callers
Method
benchmark_test
Args: func: Function to test. *args: Passes to func. **kwargs: Passes to func. Returns:
module/daemon/benchmark.py:28
↓ 2 callers
Method
check_buff
检测是否开启buff :param buff: :return:
tasks/Component/GeneralBattle/general_battle.py:446
↓ 2 callers
Method
check_layer
检查挑战的层数, 并选中挑战的层 :return:
tasks/EvoZone/script_task.py:76
↓ 2 callers
Method
check_layer
检查挑战的层数, 并选中挑战的层 :return:
tasks/FallenSun/script_task.py:72
↓ 2 callers
Method
check_lock
检查是否锁定阵容, 要求在觉醒界面 :param lock: :return:
tasks/EvoZone/script_task.py:86
↓ 2 callers
Method
check_lock
检查是否锁定阵容, 要求在八岐大蛇界面 :param lock: :return:
tasks/FallenSun/script_task.py:82
↓ 2 callers
Method
check_max_lv
在结界界面,进入式神育成,检查是否有满级的,如果有就换下一个 退出的时候还是结界界面 :return:
tasks/KekkaiActivation/script_task.py:329
↓ 2 callers
Method
check_true_orochi
检查是否出现真蛇(要求当前的界面必须是在御魂挑战的界面) :return:
tasks/TrueOrochi/script_task.py:137
↓ 2 callers
Method
click
:param control_name: :param x: :param y: :param control_check: :return:
module/device/control.py:62
↓ 2 callers
Method
click_share
点击分享 :param wechat: :return:
tasks/WeeklyTrifles/script_task.py:32
↓ 2 callers
Method
codec_options
Custom codec options passing through scrcpy. https://developer.android.com/reference/android/media/MediaFormat Returns:
module/device/method/scrcpy/options.py:10
↓ 2 callers
Method
command_v120
(cls, jar_path='/data/local/tmp/scrcpy-server.jar')
module/device/method/scrcpy/options.py:105
↓ 2 callers
Method
convert
(self, x, y)
module/device/method/minitouch.py:197
↓ 2 callers
Method
coord
获取坐标, 从roi_front随机获取坐标 和从roi_back随机获取的坐标 :return: 两个坐标的tuple
module/atom/swipe.py:49
↓ 2 callers
Method
copy_from_template
从模板复制一个配置文件 :return:
module/gui/context/settings.py:12
↓ 2 callers
Function
crop
Crop image like pillow, when using opencv / numpy. Provides a black background if cropping outside of image. Args: image (np.nda
module/base/utils.py:536
↓ 2 callers
Method
current
Returns: float
module/base/timer.py:110
↓ 2 callers
Method
deep_get
递归获取模型的值 :param obj: :param keys: :param default: :return:
module/config/config_model.py:240
↓ 2 callers
Method
detect_emulator
Args: serial (str): emulator (EmulatorInstance): Returns: list[EmulatorInstance, str]:Emulator a
module/device/emulator.py:120
↓ 2 callers
Method
detect_emulator_status
(self, serial)
module/device/emulator.py:219
↓ 2 callers
Method
devices
Returns: list[str]: Connected devices in adb
deploy/emulator.py:283
↓ 2 callers
Method
disconnect
(self, ws: WebSocket)
module/server/script_websocket.py:16
↓ 2 callers
Method
droidcast_init
(self)
module/device/method/droidcast.py:126
↓ 2 callers
Method
droidcast_wait_startup
Wait until DroidCast startup completed.
module/device/method/droidcast.py:241
↓ 2 callers
Function
enlarge_canvas
copy from https://github.com/LmeSzinc/StarRailCopilot Enlarge image into a square fill with black background. In the structure of PaddleOCR,
module/ocr/base_ocr.py:21
↓ 2 callers
Method
evozone_enter
(self)
tasks/EvoZone/script_task.py:57
↓ 2 callers
Method
execute_bondlings
(self, con: BondlingsConfig = None)
tasks/RichMan/mall/bondlings.py:19
↓ 2 callers
Method
execute_consignment
必须要求这个是第一个执行的对于 商店来说 :param con: :return:
tasks/RichMan/mall/consignment.py:16
↓ 2 callers
Method
execute_friendship
(self, con: FriendshipPointsConfig = None)
tasks/RichMan/mall/friendship_points.py:16
↓ 2 callers
Method
execute_guild
(self, con: GuildStore=None)
tasks/RichMan/guild.py:18
↓ 2 callers
Method
execute_honor
(self, con: HonorRoom = None)
tasks/RichMan/mall/honor.py:18
↓ 2 callers
Method
execute_medal
(self, con: MedalRoom = None)
tasks/RichMan/mall/medal.py:18
↓ 2 callers
Method
execute_mission
:param ocr: 要点击的 文字 :param num_want: 一共要打败的怪物数量 :param num_challenge: 现在有的挑战卷数量 :return:
tasks/WantedQuests/script_task.py:123
↓ 2 callers
Method
execute_scales
(self, con: ScalesConfig=None)
tasks/RichMan/mall/scales.py:18
↓ 2 callers
Method
execute_shrine
(self, con: ConfigShrine)
tasks/RichMan/shrine.py:16
↓ 2 callers
Method
execute_special
(self, con: SpecialRoom = None)
tasks/RichMan/mall/special.py:19
↓ 2 callers
Method
execute_tt
:param con: :return:
tasks/RichMan/thousand_things.py:15
↓ 2 callers
Method
exit_task
退出任务 :return:
tasks/Tako/script_task.py:81
↓ 2 callers
Method
fallen_sun_enter
(self)
tasks/FallenSun/script_task.py:63
↓ 2 callers
Method
fifo
先来后到,(按照任务的先后顺序进行调度) :param pending: :return:
module/config/scheduler.py:52
↓ 2 callers
Function
format_timedelta
(tdelta: timedelta)
tasks/Component/config_base.py:13
↓ 2 callers
Method
front_center
获取roi_front的中心坐标 :return:
module/atom/image.py:145
↓ 2 callers
Method
get_area_image
获取觉醒加成或者是御魂加成所要点击的区域 因为实在的图片比ocr快 :param image: :param target: :return:
tasks/Component/GeneralBuff/general_buff.py:208
↓ 2 callers
Method
get_install_dir_from_reg
Args: path (str): f'SOFTWARE\\leidian\\ldplayer' key (str): 'InstallDir' Returns: str: Installat
deploy/emulator.py:63
↓ 2 callers
Method
get_mtime
Last modify time of the file
module/config/config_watcher.py:23
↓ 2 callers
Method
get_test_methods
(self)
module/daemon/benchmark.py:172
↓ 2 callers
Method
gold_exit
(self, con)
tasks/GoldYoukai/script_task.py:99
↓ 2 callers
Method
goto_realm
从寮的主界面进入寮结界 :return:
tasks/KekkaiUtilize/script_task.py:108
↓ 2 callers
Method
gui_set_task
设置task的gui 是string类型的 :param config: :param task: :param group: :param arg: :param value: :
module/gui/context/process_manager.py:261
↓ 2 callers
Function
in_blacklist
(end)
module/base/utils.py:97
↓ 2 callers
Method
in_catch_ui
判断是否在结契的总界面 :return:
tasks/BondlingFairyland/script_task.py:492
↓ 2 callers
Method
install_uiautomator2
Init uiautomator2 and remove minicap.
module/device/connection.py:598
↓ 2 callers
Method
invite_friend
邀请好友 :param find_mode: 寻找的方式 :param name: :return:
tasks/Component/GeneralInvite/general_invite.py:321
↓ 2 callers
Method
invite_friends
看情况邀请两个好友 :return:
tasks/Component/GeneralInvite/general_invite.py:456
↓ 2 callers
Method
is_preset
(self, filter)
module/base/filter.py:27
↓ 2 callers
Method
is_target_available
如果没有可进攻目标了,那么就返回False :return:
tasks/RyouToppa/script_task.py:204
↓ 2 callers
Method
is_ticket
如果没有票了,那么就返回False :return:
tasks/RealmRaid/script_task.py:30
↓ 2 callers
Method
is_ticket
如果没有票了,那么就返回False :return:
tasks/RyouToppa/script_task.py:123
↓ 2 callers
Function
load_screencap
Args: data: Raw data from `screencap` Returns: np.ndarray:
module/device/method/adb.py:73
↓ 2 callers
Method
lock_team
锁定队伍(在探查或者是结契的界面) :return:
tasks/BondlingFairyland/script_task.py:439
↓ 2 callers
Method
loop
Main loop of scheduler. :return:
script.py:399
↓ 2 callers
Method
move
移动roi_front, 需要限幅x是0-1280, y是0-720 :param x: :param y: :return:
module/atom/click.py:53
← previous
next →
201–300 of 1,281, ranked by callers