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
bondling_finish
()
tasks/CollectiveMissions/script_task.py:162
Method
broadcast
(self, message: str)
module/server/script_websocket.py:20
Method
button
(self)
module/device/method/utils.py:298
Method
c_leader
成本函数 :return:
module/team_flow/task.py:86
Method
call
Call a function in reach grid, and get results. Args: func (str): Function name to call. **kwargs:
module/map/map_grids.py:161
Method
cd_exit
(cd: timedelta=False)
tasks/Nian/script_task.py:25
Method
center
返回roi_front的中心坐标 :return:
module/atom/click.py:45
Method
ch
(self)
module/ocr/models.py:7
Method
check_2
(img)
tasks/Component/GeneralInvite/general_invite.py:221
Method
check_3
(img)
tasks/Component/GeneralInvite/general_invite.py:215
Method
check_5
(img)
tasks/Component/GeneralInvite/general_invite.py:227
Function
check_admin
检查是不是管理员权限 如果不是管理员权限则使用管理员权限重启
module/gui/utils.py:30
Method
check_battle
(cha: bool, wq_type, wq_info)
tasks/WantedQuests/script_task.py:145
Method
check_eternity_sea
(img)
tasks/Component/GeneralInvite/general_invite.py:234
Method
check_lock
检测是否锁定队伍, :param enable: :param lock_image: :param unlock_image: :return:
tasks/Component/GeneralBattle/general_battle.py:421
Method
check_plate_number
(target_plate)
tasks/BondlingFairyland/script_task.py:206
Method
checker
占位函数,在alas中是检查服务器是否正常的 :return:
script.py:77
Method
clear
(self)
module/base/timer.py:133
Method
clearup
(cls)
module/server/setting.py:70
Method
click_adb
(self, x, y)
module/device/method/adb.py:178
Method
click_confirm
()
tasks/WeeklyTrifles/script_task.py:205
Method
click_methods
(self)
module/device/control.py:20
Method
click_record_remove
Remove a button from `click_record` Args: button (Button): Returns: int: Number of button removed
module/device/device.py:152
Method
click_scrcpy
(self, x, y)
module/device/method/scrcpy/scrcpy.py:95
Method
click_uiautomator2
(self, x, y)
module/device/method/uiautomator_2.py:134
Method
collapse_panels
Collapse all panels
module/device/method/scrcpy/control.py:147
Function
color_bar_percentage
Args: image: area: prev_color: reverse: True if bar goes from right to left. starter: threshold:
module/base/utils.py:854
Function
color_mapping
Mapping color to 0-255. Minimum color to 0, maximum color to 255, multiply colors by 2 at max. Args: image (np.ndarray):
module/base/utils.py:791
Function
color_similar
Consider two colors are similar, if tolerance lesser or equal threshold. Tolerance = Max(Positive(difference_rgb)) + Max(- Negative(difference_rgb
module/base/utils.py:706
Function
color_similar_1d
Args: image (np.ndarray): 1D array. color: (r, g, b) threshold(int): Default to 10. Returns: np.ndarray: boo
module/base/utils.py:725
Function
color_similarity
Args: color1 (tuple): (r, g, b) color2 (tuple): (r, g, b) Returns: int:
module/base/utils.py:692
Method
command_v125
Generate the commands to run scrcpy.
module/device/method/scrcpy/options.py:90
Method
compare
(res)
module/daemon/benchmark.py:149
Method
con
(self)
tasks/DemonEncounter/script_task.py:182
Method
config
(self)
script.py:51
Function
config_all
()
module/server/script_router.py:45
Function
config_copy
(file: str, template: str = 'template')
module/server/script_router.py:36
Function
config_list
()
module/server/script_router.py:32
Function
config_new_name
()
module/server/script_router.py:41
Method
config_updater
Returns: ConfigUpdater:
module/server/setting.py:85
Method
confirm_layer
检查层数, 启用函数check_layer :param ocr_target: :param roi: :return:
tasks/Secret/script_task.py:160
Method
connect
()
deploy/emulator.py:345
Method
control_handle_list
不同的模拟器需要的子句柄不同 mumu模拟器的控制需要 根窗口和第一个子窗口 雷电模拟器只需要TheRender窗口 夜神模拟器 :return:
module/device/method/window.py:81
Method
control_socket
(self)
module/device/method/scrcpy/control.py:36
Method
control_socket_lock
(self)
module/device/method/scrcpy/control.py:40
Method
coord
获取roi_front的随机的点击的坐标 :return:
module/atom/image.py:129
Method
coord
获取坐标, 从roi_front随机获取坐标 :return:
module/atom/click.py:24
Method
coord_more
获取roi_back的随机的点击的坐标 :return:
module/atom/image.py:137
Method
coord_more
从roi_back随机获取坐标 :return:
module/atom/click.py:34
Method
cost
Returns: list[int]:
module/map/map_grids.py:44
Method
count
Returns: int:
module/map/map_grids.py:60
Method
count
(self)
module/device/method/utils.py:281
Method
cpu_abi
Returns: str: arm64-v8a, armeabi-v7a, x86, x86_64
module/device/connection.py:223
Method
create_all
创建所有的配置实例 :return:
module/gui/context/process_manager.py:85
Function
decorate
(func)
module/base/decorator.py:151
Method
decorate
(func)
module/base/decorator.py:48
Function
deep_get
Get values in dictionary safely. https://stackoverflow.com/questions/25833613/safe-method-to-get-value-of-nested-dictionary Args:
module/config/utils.py:259
Function
deep_pop
Pop value from dictionary safely, imitating deep_get().
module/config/utils.py:297
Function
deep_set
Set value into dictionary safely, imitating deep_get().
module/config/utils.py:282
Method
deploy_config
Returns: DeployConfig:
module/server/setting.py:75
Method
device
(self)
script.py:64
Method
dict_card_image
(self)
tasks/KekkaiActivation/script_task.py:54
Method
dict_image_card
(self)
tasks/KekkaiActivation/script_task.py:74
Method
drag
(self, p1, p2, segments=1, shake=(0, 15), point_random=(-10, -10, 10, 10), shake_random=(-5, -5, 5, 5),
module/device/control.py:227
Method
droidcast_session
(self)
module/device/method/droidcast.py:100
Method
droidcast_uninstall
Stop all DroidCast processes and remove DroidCast APK. DroidCast has't been installed but a JAVA class call, uninstall is a file dele
module/device/method/droidcast.py:263
Function
empty_function
(*args, **kwargs)
module/logger.py:23
Method
empty_function
(*arg, **kwargs)
module/device/device.py:199
Method
emulator_family
通过句柄树来判断这个是那个模拟器大类 :return:
module/device/handle.py:289
Method
emulator_restart
(self)
module/device/emulator.py:302
Method
emulators
Returns: list: List of installed emulators on current computer.
deploy/emulator.py:266
Method
ensure_button_execute
确保button执行
tasks/GameUi/game_ui.py:72
Method
enum_windows_callback
(hwnd, windows)
module/device/handle.py:222
Function
error_wrapper
(msg, *args, **kwargs)
module/logger.py:360
Method
evaluate_click
(cost)
module/daemon/benchmark.py:88
Method
evaluate_screenshot
(cost)
module/daemon/benchmark.py:69
Method
execute_round
执行一轮 除非票不够,一直到到九次 :return:
tasks/RealmRaid/script_task.py:85
Method
exist
(self)
module/device/method/utils.py:285
Method
expand_notification_panel
Expand notification panel
module/device/method/scrcpy/control.py:133
Method
expand_settings_panel
Expand settings panel
module/device/method/scrcpy/control.py:140
Method
explore_home
:return:
tasks/GameUi/game_ui.py:52
Method
extract_groups
(sch)
module/config/config_model.py:290
Function
extract_letters
Set letter color to black, set background color to white. Args: image: Shape (height, width, channel) letter (tuple): Letter RGB.
module/base/utils.py:756
Function
extract_white_letters
Set letter color to black, set background color to white. This function will discourage color pixels (Non-gray pixels) Args: image: S
module/base/utils.py:774
Function
fastapi_app
()
module/server/app.py:46
Function
filepath_argument
(filename)
module/config/utils.py:28
Method
filter
Filter grids by a function. Args: func (callable): Function should receive an grid as argument, and return a bool.
module/map/map_grids.py:126
Method
first_roadblocks
Returns: SelectedGrids:
module/map/map_grids.py:348
Method
focused
(self)
module/device/method/utils.py:308
Method
friend_class
(self)
tasks/Component/GeneralInvite/general_invite.py:292
Function
function_drop
Drop function calls to simulate random emulator stuck, for testing purpose. Args: rate (float): 0 to 1. Drop rate. default:
module/base/decorator.py:131
Function
function_timer
(*args, **kwargs)
module/base/timer.py:13
Function
future_time_range
Args: string (str): Such as 23:30-06:30. Returns: tuple(datetime.datetime): (time start, time end).
module/base/timer.py:52
Method
general_battle_config
(self)
tasks/BondlingFairyland/script_task.py:528
Method
generate_linear_trajectory
生成线性轨迹 :param start_pos: :param end_pos: :param num_points: :return:
module/atom/swipe.py:91
Method
generate_points
(start_pos: list, end_pos: list, number: int)
module/device/method/window.py:273
Method
getFun
:param s: 传入P点 :return: 返回公式
module/atom/cBezier.py:63
Method
getFun
:param s: 传入P点 :return: 返回公式
module/base/cBezier.py:64
Function
get_bbox
A numpy implementation of the getbbox() in pillow. Args: image (np.ndarray): Screenshot. threshold (int): Color <= threshold
module/base/utils.py:674
Method
get_click_target
(ind: int)
tasks/BondlingFairyland/script_task.py:343
← previous
next →
901–1,000 of 1,281, ranked by callers