MCPcopy Create free account

hub / github.com/runhey/OnmyojiAutoScript / functions

Functions1,281 in github.com/runhey/OnmyojiAutoScript

Methodbondling_finish
()
tasks/CollectiveMissions/script_task.py:162
Methodbroadcast
(self, message: str)
module/server/script_websocket.py:20
Methodbutton
(self)
module/device/method/utils.py:298
Methodc_leader
成本函数 :return:
module/team_flow/task.py:86
Methodcall
Call a function in reach grid, and get results. Args: func (str): Function name to call. **kwargs:
module/map/map_grids.py:161
Methodcd_exit
(cd: timedelta=False)
tasks/Nian/script_task.py:25
Methodcenter
返回roi_front的中心坐标 :return:
module/atom/click.py:45
Methodch
(self)
module/ocr/models.py:7
Methodcheck_2
(img)
tasks/Component/GeneralInvite/general_invite.py:221
Methodcheck_3
(img)
tasks/Component/GeneralInvite/general_invite.py:215
Methodcheck_5
(img)
tasks/Component/GeneralInvite/general_invite.py:227
Functioncheck_admin
检查是不是管理员权限 如果不是管理员权限则使用管理员权限重启
module/gui/utils.py:30
Methodcheck_battle
(cha: bool, wq_type, wq_info)
tasks/WantedQuests/script_task.py:145
Methodcheck_eternity_sea
(img)
tasks/Component/GeneralInvite/general_invite.py:234
Methodcheck_lock
检测是否锁定队伍, :param enable: :param lock_image: :param unlock_image: :return:
tasks/Component/GeneralBattle/general_battle.py:421
Methodcheck_plate_number
(target_plate)
tasks/BondlingFairyland/script_task.py:206
Methodchecker
占位函数,在alas中是检查服务器是否正常的 :return:
script.py:77
Methodclear
(self)
module/base/timer.py:133
Methodclearup
(cls)
module/server/setting.py:70
Methodclick_adb
(self, x, y)
module/device/method/adb.py:178
Methodclick_confirm
()
tasks/WeeklyTrifles/script_task.py:205
Methodclick_methods
(self)
module/device/control.py:20
Methodclick_record_remove
Remove a button from `click_record` Args: button (Button): Returns: int: Number of button removed
module/device/device.py:152
Methodclick_scrcpy
(self, x, y)
module/device/method/scrcpy/scrcpy.py:95
Methodclick_uiautomator2
(self, x, y)
module/device/method/uiautomator_2.py:134
Methodcollapse_panels
Collapse all panels
module/device/method/scrcpy/control.py:147
Functioncolor_bar_percentage
Args: image: area: prev_color: reverse: True if bar goes from right to left. starter: threshold:
module/base/utils.py:854
Functioncolor_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
Functioncolor_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
Functioncolor_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
Functioncolor_similarity
Args: color1 (tuple): (r, g, b) color2 (tuple): (r, g, b) Returns: int:
module/base/utils.py:692
Methodcommand_v125
Generate the commands to run scrcpy.
module/device/method/scrcpy/options.py:90
Methodcompare
(res)
module/daemon/benchmark.py:149
Methodcon
(self)
tasks/DemonEncounter/script_task.py:182
Methodconfig
(self)
script.py:51
Functionconfig_all
()
module/server/script_router.py:45
Functionconfig_copy
(file: str, template: str = 'template')
module/server/script_router.py:36
Functionconfig_list
()
module/server/script_router.py:32
Functionconfig_new_name
()
module/server/script_router.py:41
Methodconfig_updater
Returns: ConfigUpdater:
module/server/setting.py:85
Methodconfirm_layer
检查层数, 启用函数check_layer :param ocr_target: :param roi: :return:
tasks/Secret/script_task.py:160
Methodconnect
()
deploy/emulator.py:345
Methodcontrol_handle_list
不同的模拟器需要的子句柄不同 mumu模拟器的控制需要 根窗口和第一个子窗口 雷电模拟器只需要TheRender窗口 夜神模拟器 :return:
module/device/method/window.py:81
Methodcontrol_socket
(self)
module/device/method/scrcpy/control.py:36
Methodcontrol_socket_lock
(self)
module/device/method/scrcpy/control.py:40
Methodcoord
获取roi_front的随机的点击的坐标 :return:
module/atom/image.py:129
Methodcoord
获取坐标, 从roi_front随机获取坐标 :return:
module/atom/click.py:24
Methodcoord_more
获取roi_back的随机的点击的坐标 :return:
module/atom/image.py:137
Methodcoord_more
从roi_back随机获取坐标 :return:
module/atom/click.py:34
Methodcost
Returns: list[int]:
module/map/map_grids.py:44
Methodcount
Returns: int:
module/map/map_grids.py:60
Methodcount
(self)
module/device/method/utils.py:281
Methodcpu_abi
Returns: str: arm64-v8a, armeabi-v7a, x86, x86_64
module/device/connection.py:223
Methodcreate_all
创建所有的配置实例 :return:
module/gui/context/process_manager.py:85
Functiondecorate
(func)
module/base/decorator.py:151
Methoddecorate
(func)
module/base/decorator.py:48
Functiondeep_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
Functiondeep_pop
Pop value from dictionary safely, imitating deep_get().
module/config/utils.py:297
Functiondeep_set
Set value into dictionary safely, imitating deep_get().
module/config/utils.py:282
Methoddeploy_config
Returns: DeployConfig:
module/server/setting.py:75
Methoddevice
(self)
script.py:64
Methoddict_card_image
(self)
tasks/KekkaiActivation/script_task.py:54
Methoddict_image_card
(self)
tasks/KekkaiActivation/script_task.py:74
Methoddrag
(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
Methoddroidcast_session
(self)
module/device/method/droidcast.py:100
Methoddroidcast_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
Functionempty_function
(*args, **kwargs)
module/logger.py:23
Methodempty_function
(*arg, **kwargs)
module/device/device.py:199
Methodemulator_family
通过句柄树来判断这个是那个模拟器大类 :return:
module/device/handle.py:289
Methodemulator_restart
(self)
module/device/emulator.py:302
Methodemulators
Returns: list: List of installed emulators on current computer.
deploy/emulator.py:266
Methodensure_button_execute
确保button执行
tasks/GameUi/game_ui.py:72
Methodenum_windows_callback
(hwnd, windows)
module/device/handle.py:222
Functionerror_wrapper
(msg, *args, **kwargs)
module/logger.py:360
Methodevaluate_click
(cost)
module/daemon/benchmark.py:88
Methodevaluate_screenshot
(cost)
module/daemon/benchmark.py:69
Methodexecute_round
执行一轮 除非票不够,一直到到九次 :return:
tasks/RealmRaid/script_task.py:85
Methodexist
(self)
module/device/method/utils.py:285
Methodexpand_notification_panel
Expand notification panel
module/device/method/scrcpy/control.py:133
Methodexpand_settings_panel
Expand settings panel
module/device/method/scrcpy/control.py:140
Methodexplore_home
:return:
tasks/GameUi/game_ui.py:52
Methodextract_groups
(sch)
module/config/config_model.py:290
Functionextract_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
Functionextract_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
Functionfastapi_app
()
module/server/app.py:46
Functionfilepath_argument
(filename)
module/config/utils.py:28
Methodfilter
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
Methodfirst_roadblocks
Returns: SelectedGrids:
module/map/map_grids.py:348
Methodfocused
(self)
module/device/method/utils.py:308
Methodfriend_class
(self)
tasks/Component/GeneralInvite/general_invite.py:292
Functionfunction_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
Functionfunction_timer
(*args, **kwargs)
module/base/timer.py:13
Functionfuture_time_range
Args: string (str): Such as 23:30-06:30. Returns: tuple(datetime.datetime): (time start, time end).
module/base/timer.py:52
Methodgeneral_battle_config
(self)
tasks/BondlingFairyland/script_task.py:528
Methodgenerate_linear_trajectory
生成线性轨迹 :param start_pos: :param end_pos: :param num_points: :return:
module/atom/swipe.py:91
Methodgenerate_points
(start_pos: list, end_pos: list, number: int)
module/device/method/window.py:273
MethodgetFun
:param s: 传入P点 :return: 返回公式
module/atom/cBezier.py:63
MethodgetFun
:param s: 传入P点 :return: 返回公式
module/base/cBezier.py:64
Functionget_bbox
A numpy implementation of the getbbox() in pillow. Args: image (np.ndarray): Screenshot. threshold (int): Color <= threshold
module/base/utils.py:674
Methodget_click_target
(ind: int)
tasks/BondlingFairyland/script_task.py:343
← previousnext →901–1,000 of 1,281, ranked by callers