MCPcopy Create free account

hub / github.com/runhey/OnmyojiAutoScript / functions

Functions1,281 in github.com/runhey/OnmyojiAutoScript

↓ 1 callersMethodadb_restart
Reboot adb client
module/device/connection.py:563
↓ 1 callersMethodadb_shell_nc
Args: cmd (list): timeout (int): chunk_size (int): Default to 262144 Returns: bytes:
module/device/connection.py:355
↓ 1 callersMethodadd
add :param config: 如oas1 :return:
module/gui/context/process_manager.py:95
↓ 1 callersMethodadd_shiki
(self)
tasks/Exploration/script_task.py:133
↓ 1 callersMethodall_json_file
获取所有的json文件 :return: ['oas1', 'oas2']
module/gui/context/add.py:36
↓ 1 callersMethodall_json_file
获取所有的json文件 :return: ['oas1', 'oas2']
module/server/config_manager.py:28
↓ 1 callersMethodall_json_file
获取所有json文件 :return: json文件(带后缀)列表
dev_tools/assets_extract.py:266
↓ 1 callersMethodall_windows
获取桌面上的所有窗体 :return: 类似这样['MuMu模拟器']
module/device/handle.py:215
↓ 1 callersMethodapp_current_adb
Copied from uiautomator2 Returns: str: Package name. Raises: OSError For developer:
module/device/method/adb.py:202
↓ 1 callersMethodapp_current_uiautomator2
Returns: str: Package name.
module/device/method/uiautomator_2.py:216
↓ 1 callersMethodapp_restart
(self)
tasks/Restart/script_task.py:38
↓ 1 callersMethodapp_start
(self)
module/device/device.py:205
↓ 1 callersMethodapp_start_adb
Args: package_name (str): allow_failure (bool): Returns: bool: If success to start
module/device/method/adb.py:244
↓ 1 callersMethodapp_start_uiautomator2
(self, package_name=None)
module/device/method/uiautomator_2.py:225
↓ 1 callersMethodapp_stop_uiautomator2
(self, package_name=None)
module/device/method/uiautomator_2.py:236
↓ 1 callersMethodapply
Args: objs (list): List of objects and strings func (callable): A function to filter object. Function
module/base/filter.py:30
↓ 1 callersMethodapply_filter_to_obj
Args: obj (object): filter (list[str]): Returns: bool: If an object satisfy a filter.
module/base/filter.py:65
↓ 1 callersFunctionarea_limit
Limit an area in another area. Args: area1: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). area2: (upper_left
module/base/utils.py:243
↓ 1 callersFunctionarea_offset
Move an area. Args: area: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). offset: (x, y). Returns:
module/base/utils.py:197
↓ 1 callersFunctionarea_size
Area size or shape. Args: area: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y). Returns: tuple: (x, y).
module/base/utils.py:263
↓ 1 callersMethodarguments
https://github.com/Genymobile/scrcpy/blob/master/server/src/main/java/com/genymobile/scrcpy/Server.java https://github.com/Genymobile
module/device/method/scrcpy/options.py:43
↓ 1 callersMethodauto_handle_title
返回第一个找到的有模拟器的标题 :param windows: :return:
module/device/handle.py:231
↓ 1 callersMethodback_records
退回到式神录 :return:
tasks/SoulsTidy/script_task.py:48
↓ 1 callersMethodback_summon_main
返回召唤主界面 :return:
tasks/Component/Summon/summon.py:77
↓ 1 callersMethodball_click
点击球, 进去结契战斗的界面 :param index: :return:
tasks/BondlingFairyland/script_task.py:337
↓ 1 callersMethodbattle_process
(self)
tasks/Exploration/script_task.py:207
↓ 1 callersMethodbattle_wait
(self, random_click_swipt_enable: bool)
tasks/DemonEncounter/script_task.py:371
↓ 1 callersMethodbroadcast_log
(self, log: str)
module/server/script_websocket.py:30
↓ 1 callersMethodc_member
成本函数 :return:
module/team_flow/task.py:98
↓ 1 callersMethodcapture_setting
第一次进入任务的时候触发这一项方法:为了确保用户的选择默认是正确的 在结契的跳转页面,进入结契设置,按照模式来勾选 :param mode: :return:
tasks/BondlingFairyland/script_task.py:369
↓ 1 callersMethodcatch_battle_wait
重写一个 战斗等待 :return: 如果捕获成功返回True,否则返回False
tasks/BondlingFairyland/battle.py:47
↓ 1 callersMethodchallenge
(self, goto, num)
tasks/WantedQuests/script_task.py:192
↓ 1 callersMethodcheck_ap_remain
检查体力是否足够 :return: 如何还有体力,返回True,否则返回False
tasks/ActivityShikigami/script_task.py:136
↓ 1 callersMethodcheck_box_ap_or_exp
顺路检查盒子 :param ap_enable: :param exp_enable: :return:
tasks/KekkaiUtilize/script_task.py:123
↓ 1 callersMethodcheck_card_effect
检查这张卡是否生效了, 如果是出现的“邀请”那就是生效了, 如果是“激活”那就是还没生效 :param screenshot: :return: 生效返回True
tasks/KekkaiActivation/script_task.py:166
↓ 1 callersMethodcheck_card_status
判断使用有挂卡在上面了, 判断依据就是如果没看就可以显示背景图 :param screenshot: :return: 如果有卡在上面了返回True,否则返回False
tasks/KekkaiActivation/script_task.py:156
↓ 1 callersMethodcheck_cd
检查是否在冷却中, :return: 如果是冷却中, 返回剩余时间, 否则返回False
tasks/Nian/script_task.py:111
↓ 1 callersMethodcheck_date
(self, goryou_class: GoryouClass = GoryouClass.RANDOM)
tasks/GoryouRealm/script_task.py:80
↓ 1 callersMethodcheck_datetime
检查日期和时间, 会设置是麒麟还是阴界之门 :return: 符合19:00-21:00的时间返回True, 否则返回False
tasks/Hunt/script_task.py:47
↓ 1 callersMethodcheck_guild_ap_or_assets
在寮的主界面 检查是否有收取体力或者是收取寮资金 如果有就顺带收取 :return:
tasks/KekkaiUtilize/script_task.py:65
↓ 1 callersMethodcheck_honor
检查荣誉是否满了 :return:
tasks/Duel/script_task.py:86
↓ 1 callersMethodcheck_lantern
检查灯笼的类型 :param index: 四个灯笼,从1开始 :return:
tasks/DemonEncounter/script_task.py:185
↓ 1 callersMethodcheck_layer
(ocr_target: RuleOcr, roi=None)
tasks/Secret/script_task.py:139
↓ 1 callersMethodcheck_load
检查战斗时候的加载动画 如何是还在加载种,有那个要准备的按钮,就返回True 如果已经进入战斗了,就返回False :return:
tasks/BondlingFairyland/battle.py:33
↓ 1 callersMethodcheck_medal_is_frog
检查这个是不是呱太,为此之前你还需要判断是不是 处于呱太活动的 :param target: :param is_activity: 如果不是呱太活动,那么就不需要检查了 :param order: :return:
tasks/RealmRaid/script_task.py:357
↓ 1 callersMethodcheck_reward
(self)
tasks/Delegation/script_task.py:96
↓ 1 callersMethodcheck_room_type
检查房间类型 :param image: :param pre_type: 可以先指定这个类型,如果不指定,就自动检查 :return:
tasks/Component/GeneralInvite/general_invite.py:207
↓ 1 callersFunctioncheck_running_directory
An fool-proof mechanism. Show error if user is running Easy Install in compressing software, since Alas can't install in temp directories
deploy/patch.py:37
↓ 1 callersMethodcheck_score
检查是否达到目标分数 :param target: 目标分数 :return:
tasks/Duel/script_task.py:96
↓ 1 callersMethodcheck_screen_black
(self)
module/device/screenshot.py:225
↓ 1 callersMethodcheck_screen_size
Screen size must be 1280x720. Take a screenshot before call.
module/device/screenshot.py:187
↓ 1 callersMethodcheck_ticket
检查是不是有票, 检查这个票是否大于等于基准 :param base: :return:
tasks/RealmRaid/script_task.py:281
↓ 1 callersMethodcheck_time
检查时间是否正确, 如果正确就继续 如果不在17:00到22:00之间,就推迟到下一个 17:30 :return:
tasks/DemonEncounter/script_task.py:348
↓ 1 callersMethodcheck_utilize_harvest
在寮结界界面检查是否有收获 :return: 如果没有返回False, 如果有就收菜返回True
tasks/KekkaiUtilize/script_task.py:232
↓ 1 callersMethodclick_fire
(self)
tasks/Component/GeneralInvite/general_invite.py:187
↓ 1 callersMethodclick_minitouch
(self, x, y)
module/device/method/minitouch.py:523
↓ 1 callersMethodclick_record_add
(self, button)
module/device/device.py:146
↓ 1 callersMethodclick_record_check
Raises: GameTooManyClickError:
module/device/device.py:173
↓ 1 callersMethodclick_search
点击探查 :return: 如果五个球满了 就返回False。如果进入战斗不出现点击按钮那就是返回True
tasks/BondlingFairyland/script_task.py:510
↓ 1 callersMethodclick_window_message
:param x: :param y: :return:
module/device/method/window.py:133
↓ 1 callersFunctioncol2name
Convert a zero indexed column cell reference to a string. Args: col: The cell column. Int. Returns: Column style string.
module/base/utils.py:370
↓ 1 callersFunctioncolor_similarity_2d
Args: image: 2D array. color: (r, g, b) Returns: np.ndarray: uint8
module/base/utils.py:740
↓ 1 callersMethodcommit
Move the temporary file to the target location.
module/config/atomicwrites.py:209
↓ 1 callersMethodconnect
(self, ws: WebSocket)
module/server/script_websocket.py:11
↓ 1 callersFunctionconnect_mqtt
()
module/team_flow/mqtt_test.py:16
↓ 1 callersMethodcopy
复制一个配置文件 :param file: 不带json后缀 :param template: :return:
module/server/config_manager.py:45
↓ 1 callersMethodcoroutine_broadcast_log
(self)
module/server/script_process.py:88
↓ 1 callersMethodcoroutine_broadcast_state
(self)
module/server/script_process.py:59
↓ 1 callersMethodcorp
截取图片 :param image: :return:
module/atom/image.py:94
↓ 1 callersMethodcreate_index
(self, *attrs)
module/map/map_grids.py:85
↓ 1 callersMethodcurrent_datetime
获取当前的时间 :return:
module/gui/context/utils.py:18
↓ 1 callersMethoddeep_set
(obj, keys: str, value)
module/config/config_model.py:259
↓ 1 callersMethoddelete
Args: grids(SelectedGrids): Returns: SelectedGrids:
module/map/map_grids.py:238
↓ 1 callersMethoddetect_best
自动寻找最好的任务并返回,期间记录三个任务的类型 :return: 任务类型, 0/1/2
tasks/CollectiveMissions/script_task.py:127
↓ 1 callersMethoddetect_no_shikigami
(self)
tasks/Component/ReplaceShikigami/replace_shikigami.py:101
↓ 1 callersFunctiondict_to_kv
Args: dictionary: Such as `{'path': 'Scheduler.ServerUpdate', 'value': True}` allow_none (bool): Returns: str: Such
module/config/utils.py:235
↓ 1 callersMethoddisable_stuck_detection
Disable stuck detection and its handler. Usually uses in semi auto and debugging.
module/device/device.py:193
↓ 1 callersMethoddo_battle
(self)
tasks/Exploration/script_task.py:181
↓ 1 callersMethoddrag_minitouch
(self, p1, p2, point_random=(-10, -10, 10, 10))
module/device/method/minitouch.py:553
↓ 1 callersMethoddrag_scrcpy
(self, p1, p2, point_random=(-10, -10, 10, 10))
module/device/method/scrcpy/scrcpy.py:132
↓ 1 callersMethoddrag_uiautomator2
Drag and shake, like: /\ +-----------+ + + \/ A simple swipe or drag don't work well, b
module/device/method/uiautomator_2.py:185
↓ 1 callersMethodduel_main
判断是否斗技主界面 :return:
tasks/Duel/script_task.py:57
↓ 1 callersMethodduel_one
进行一次斗技, 返回输赢结果 :param mark_mode: :param enable: :param current_score: 当前分数, 不同的分数有不同的战斗界面 :return:
tasks/Duel/script_task.py:112
↓ 1 callersMethoddump_hierarchy
Returns: etree._Element: Select elements with `self.hierarchy.xpath('//*[@text="Hermit"]')` for example.
module/device/app_control.py:45
↓ 1 callersMethoddump_hierarchy_adb
Args: temp (str): Temp file store on emulator. Returns: etree._Element:
module/device/method/adb.py:306
↓ 1 callersMethoddump_hierarchy_uiautomator2
(self)
module/device/method/uiautomator_2.py:242
↓ 1 callersMethodemulator_kill
Args: serial (str): Expected serial after simulator starts successfully. emulator (EmulatorInstance): Emulator to sta
module/device/emulator.py:260
↓ 1 callersMethodemulator_start
Args: serial (str): Expected serial after simulator starts successfully. emulator (EmulatorInstance): Emulator to sta
module/device/emulator.py:226
↓ 1 callersMethodensure_enter
确认是否进入了组队界面 :return:
tasks/Component/GeneralInvite/general_invite.py:132
↓ 1 callersMethodensure_lock
确保锁定阵容 :param lock_team_enable: :return:
tasks/RealmRaid/script_task.py:239
↓ 1 callersMethodensure_room_type
确认设定的邀请人数是否会超出房间的最大 :param friend_number: 这个输入的是用户选项中的invite_number :return: 如果超出了,就返回False
tasks/Component/GeneralInvite/general_invite.py:267
↓ 1 callersMethodenter_settings_and_do_operations
(self)
tasks/Exploration/script_task.py:112
↓ 1 callersMethodenter_shikigami_records
进入式神录(在探查或者是结契的界面) :return:
tasks/BondlingFairyland/script_task.py:425
↓ 1 callersFunctionerror_convert
(func)
module/logger.py:359
↓ 1 callersMethodexecute_boss
打boss :return:
tasks/DemonEncounter/script_task.py:45
↓ 1 callersMethodexecute_charisma
(self, con: CharismaConfig = None)
tasks/RichMan/mall/charisma.py:15
↓ 1 callersMethodexecute_lantern
点灯笼 四次 :return:
tasks/DemonEncounter/script_task.py:127
↓ 1 callersMethodexecute_mall
(self)
tasks/RichMan/mall/mall.py:19
↓ 1 callersMethodexecute_round
执行一轮 除非票不够,一直到到九次 :return:
tasks/RyouToppa/script_task.py:178
↓ 1 callersMethodexit_shikigami_records
退出式神录的界面 :return:
tasks/Component/SwitchSoul/switch_soul.py:144
← previousnext →401–500 of 1,281, ranked by callers