MCPcopy Create free account

hub / github.com/runhey/OnmyojiAutoScript / functions

Functions1,281 in github.com/runhey/OnmyojiAutoScript

↓ 5 callersMethodfilepath
Args: key (str): Returns: str: Absolute filepath.
deploy/config.py:102
↓ 5 callersMethodfire
挑战 :param order: 第几个 :return:
tasks/RealmRaid/script_task.py:450
↓ 5 callersFunctionfloat2str
(n, decimal=3)
module/daemon/benchmark.py:17
↓ 5 callersMethodhandle_control_check
(self, button)
module/device/control.py:15
↓ 5 callersMethodinvite_friend
重写 :param find_mode: :param name: :return:
tasks/MysteryShop/script_task.py:140
↓ 5 callersMethodis_in_battle
判断是否在战斗中 :return:
tasks/Component/GeneralBattle/general_battle.py:363
↓ 5 callersMethodlong_click
:param control_name: :param x: :param y: :param duration: 单位是s :return:
module/device/control.py:130
↓ 5 callersMethodmedal_fire
点击勋章 :return:
tasks/RealmRaid/script_task.py:43
↓ 5 callersMethodmove
add minitouch command: 'm <contact> <x> <y> <pressure>\n'
module/device/method/minitouch.py:250
↓ 5 callersMethodpublish_data
提取要 发布的数据 :return:
module/team_flow/player.py:18
↓ 5 callersMethodremove
(file)
deploy/git.py:14
↓ 5 callersMethodrule
(self)
tasks/CollectiveMissions/script_task.py:38
↓ 5 callersMethodstop
(self)
module/server/script_process.py:47
↓ 5 callersMethodup
add minitouch command: 'u <contact>\n'
module/device/method/minitouch.py:239
↓ 5 callersMethodwrite
(self)
deploy/config.py:99
↓ 4 callersMethod_bondlings_base
:param buy_button: 对应的兑换按钮 :param remain_number: 对应的检查剩余数量的ocr :param check_money: 对应的检查剩余金钱的第一个 :param buy_number:
tasks/RichMan/mall/bondlings.py:40
↓ 4 callersMethod_bztsg
(cls, dataTrajectory)
module/atom/cBezier.py:16
↓ 4 callersMethod_bztsg
(cls, dataTrajectory)
module/base/cBezier.py:17
↓ 4 callersFunction_path_to_unicode
(x)
module/config/atomicwrites.py:29
↓ 4 callersMethod_scales_buy_more
(self, start_click, number: int = None)
tasks/RichMan/mall/scales.py:63
↓ 4 callersMethodadb_forward_remove
Equivalent to `adb -s <serial> forward --remove <local>` More about the commands send to ADB server, see: https://cs.android.
module/device/connection.py:450
↓ 4 callersMethodbrute_force_connect
Brute-force connect all available emulator instances
deploy/emulator.py:341
↓ 4 callersMethodcheck_and_invite
队长战斗后 邀请队友 :param default_invite: :return:
tasks/Component/GeneralInvite/general_invite.py:510
↓ 4 callersMethodcheck_take_over_battle
中途接入战斗,并且接管 :return: 赢了返回True, 输了返回False, 不是在战斗中返回None
tasks/Component/GeneralBattle/general_battle.py:396
↓ 4 callersMethodclick_fire
点击 挑战, 主要是结契时的挑战
tasks/BondlingFairyland/script_task.py:478
↓ 4 callersMethodcrop
截取图片 :param roi: :param image: :return:
module/ocr/base_ocr.py:109
↓ 4 callersMethoddetect_device
Find available devices If serial=='auto' and only 1 device detected, use it
module/device/connection.py:717
↓ 4 callersMethoddetect_text
识别图片中的文字, 会按照顺序拼接起来 :param image: :return:
module/ocr/base_ocr.py:241
↓ 4 callersMethoddroidcast_stop
Stop all DroidCast processes.
module/device/method/droidcast.py:284
↓ 4 callersMethodensure_config_cache
(self, config_name: str, reload: bool = False)
module/server/main_manager.py:34
↓ 4 callersFunctionensure_int
Convert all elements to int. Return the same structure as nested objects. Args: *args: Returns: list:
module/base/utils.py:173
↓ 4 callersMethodensure_private
确认私人房间, 不公开仅邀请 :return:
tasks/Component/GeneralRoom/general_room.py:45
↓ 4 callersMethodexit_team
在组队界面 退出组队的界面, 返回到庭院或者是你一开始进入的入口 :return:
tasks/Component/GeneralRoom/general_room.py:103
↓ 4 callersFunctionfloat2str
Args: n (float): decimal (int): Returns: str:
module/base/utils.py:345
↓ 4 callersMethodget_area
获取要点击的开关buff的区域 :param cls: :param image: :param buff: :return: 如果没有就返回None
tasks/Component/GeneralBuff/general_buff.py:53
↓ 4 callersMethodgreen_mark
绿标, 如果不使能就直接返回 :param enable: :param mark_mode: :return:
tasks/Component/GeneralBattle/general_battle.py:232
↓ 4 callersMethodimage_appear
判断是否出现了某个图片 :param image: 屏幕的截图 :param name: :return: 如果在当前的显示中,返回可以点击的坐标.如果不是出现就是返回False
module/atom/list.py:133
↓ 4 callersMethodin_search_ui
判断是否在探查的总界面 :return:
tasks/BondlingFairyland/script_task.py:501
↓ 4 callersFunctioninsert_swipe
Insert way point from start to end. First generate a cubic bézier curve Args: p0: Start point. p3: End point. sp
module/device/method/minitouch.py:37
↓ 4 callersMethodinstall
(self)
deploy/installer.py:14
↓ 4 callersMethodkill_by_name
Args: name (str): Process name
deploy/process.py:53
↓ 4 callersMethodlist_device
Returns: SelectedGrids[AdbDeviceWithStatus]:
module/device/connection.py:690
↓ 4 callersMethodlist_find
会一致在列表寻找目标,找到了就退出。 如果是图片列表会一直往下找 如果是纯文字的,会自动识别自己的位置,根据位置选择向前还是向后翻 :param target: :param name: :return
tasks/base_task.py:391
↓ 4 callersMethodocr_single
检测某个固定位置的roi的文本。可以是横方向也可以是竖方向 :param image: :return: 返回到识别的文字, 如果没有返回空字符串
module/ocr/sub_ocr.py:69
↓ 4 callersMethodopen
Open the temporary file.
module/config/atomicwrites.py:165
↓ 4 callersMethodorochi_enter
(self)
tasks/Orochi/script_task.py:74
↓ 4 callersMethodpre_process
重写 :param image: :return:
module/ocr/base_ocr.py:92
↓ 4 callersFunctionrandom_port
get a random port from port set
module/device/method/utils.py:33
↓ 4 callersMethodread
(self)
deploy/config.py:90
↓ 4 callersFunctionrecv_all
Args: stream: chunk_size: recv_interval (float): Default to 0.000, use 0.001 if receiving as server Returns:
module/device/method/utils.py:42
↓ 4 callersMethodremove
(*args)
module/daemon/benchmark.py:178
↓ 4 callersFunctionremove_shell_warning
Remove warnings from shell Args: s (str, bytes): Returns: str, bytes:
module/device/method/utils.py:208
↓ 4 callersMethodsave_error_log
Save last 60 screenshots in ./log/error/<timestamp> Save logs to ./log/error/<timestamp>/log.txt
script.py:84
↓ 4 callersMethodstart
(self)
module/server/script_process.py:32
↓ 4 callersMethoduninstall_minicap
minicap can't work or will send compressed images on some emulators.
module/device/connection.py:615
↓ 4 callersMethodupdate_scheduler
更新调度器, 设置pending_task and waiting_task :return:
module/config/config.py:168
↓ 4 callersMethodwait_battle
在房间等待,(要求保证在房间里面) 队长开启战斗 如果队长跑路了,或者的等待了很久还没开始 :return: 如果成功进入战斗(反正就是不在房间 )返回 True 如果失败了,(退出房间)返回 False
tasks/Component/GeneralInvite/general_invite.py:564
↓ 3 callersFunction_sync_directory
(directory)
module/config/atomicwrites.py:48
↓ 3 callersMethodadb_command
Execute ADB commands in a subprocess, usually to be used when pulling or pushing large files. Args: cmd (list):
module/device/connection.py:118
↓ 3 callersMethodadb_connect
Connect to a serial, try 3 times at max. If there's an old ADB server running while Alas is using a newer one, which happens on Chine
module/device/connection.py:491
↓ 3 callersMethodadb_push
Args: local (str): remote (str): Returns: str:
module/device/connection.py:478
↓ 3 callersMethodafter_process
重写 :param result: :return:
module/ocr/base_ocr.py:100
↓ 3 callersMethodafter_process
(self, result)
module/ocr/sub_ocr.py:22
↓ 3 callersMethodall_script_files
获取所有的脚本文件 除了tmplate :return: ['oas1', 'oas2']
module/gui/context/add.py:20
↓ 3 callersFunctionanswer_one
每一个问题有四个选项, 返回选项的序号(1、2、3) :param question: :param options: :return:
tasks/DemonEncounter/data/answer.py:10
↓ 3 callersMethodapp_is_running
(self)
module/device/app_control.py:14
↓ 3 callersMethodapp_start
(self)
tasks/Restart/script_task.py:32
↓ 3 callersMethodapp_stop_adb
Stop one application: am force-stop
module/device/method/adb.py:299
↓ 3 callersFunctionatomic_write
Simple atomic writes. This wraps :py:class:`AtomicWriter`:: with atomic_write(path) as f: f.write(...) :param path: The
module/config/atomicwrites.py:221
↓ 3 callersMethodawake
觉醒buff :param is_open: 是否打开 :return:
tasks/Component/GeneralBuff/general_buff.py:227
↓ 3 callersMethodback_guild
回到寮的界面 :return:
tasks/KekkaiUtilize/script_task.py:441
↓ 3 callersMethodbenchmark
(self, screenshot: t.Tuple[str] = (), click: t.Tuple[str] = ())
module/daemon/benchmark.py:132
↓ 3 callersMethodbuy_check_money
检查钱是否足够 :param target: :param minimum: :return:
tasks/Component/Buy/buy.py:149
↓ 3 callersMethodbuy_one
购买一个物品 :param check_image: 购买确认时候的图片 :param start_click: 开始点击 :return:
tasks/Component/Buy/buy.py:19
↓ 3 callersMethodcheck_layer
检查挑战的层数, 并选中挑战的层 :return:
tasks/Orochi/script_task.py:83
↓ 3 callersMethodcheck_refresh
检查是否出现了刷新的按钮 如果可以刷新就刷新,返回True 如果在CD中,就返回False :return:
tasks/RealmRaid/script_task.py:425
↓ 3 callersMethodcheck_remain
(self, image: RuleImage)
tasks/RichMan/guild.py:100
↓ 3 callersMethodcheck_then_accept
队员接受邀请 :return:
tasks/Component/GeneralInvite/general_invite.py:542
↓ 3 callersMethodcheck_times
后续的次数和时间设置 :param battle: :param current_success: 这周的成功次数 :return:
tasks/TrueOrochi/script_task.py:146
↓ 3 callersMethodclear
clear current commands
module/device/method/minitouch.py:256
↓ 3 callersMethodclick_preset
点击预设 :return:
tasks/Component/SwitchSoul/switch_soul.py:40
↓ 3 callersFunctiondeep_iter
Iter a dictionary safely. Args: data (dict): depth (int): Maximum depth to iter current_depth (int): Returns:
module/config/utils.py:103
↓ 3 callersMethoddetect_one
检测某一个位置是什么的任务 :param ocr_1: :param ocr_2: :return:
tasks/CollectiveMissions/script_task.py:91
↓ 3 callersMethodensure_public
确认公开房间, 允许任何人加入 :return:
tasks/Component/GeneralRoom/general_room.py:62
↓ 3 callersMethodexecute
Args: command (str): Returns: subprocess.Popen:
module/device/emulator.py:172
↓ 3 callersMethodexit_battle
在战斗的时候强制退出战斗 :return:
tasks/Component/GeneralBattle/general_battle.py:121
↓ 3 callersFunctionfilepath_config
返回配置文件的路径
module/config/utils.py:15
↓ 3 callersMethodfirst_or_none
Returns:
module/map/map_grids.py:174
↓ 3 callersMethodget_schedule_data
获取调度器的数据, 但是你必须使用update_scheduler来更新信息 :return:
module/config/config.py:227
↓ 3 callersFunctionget_serial_pair
Args: serial (str): Returns: str, str: `127.0.0.1:5555+{X}` and `emulator-5554+{X}`, 0 <= X <= 32
module/device/method/utils.py:168
↓ 3 callersFunctionhandle_title2num
从标题到句柄号 :param title: :return: 如果没有找到就是返回零
module/device/handle.py:24
↓ 3 callersFunctionimage_size
Args: image (np.ndarray): Returns: int, int: width, height
module/base/utils.py:587
↓ 3 callersMethodis_room_dead
(self)
tasks/Orochi/script_task.py:406
↓ 3 callersMethodmall_check_money
(self, index: int, least: int)
tasks/RichMan/mall/navbar.py:115
↓ 3 callersFunctionpoor_yaml_read
Poor implementation to load yaml without pyyaml dependency, but with re Args: file (str): Returns: dict:
deploy/utils.py:57
↓ 3 callersFunctionpossible_reasons
Show possible reasons Possible reason #1: <reason_1> Possible reason #2: <reason_2>
module/device/method/utils.py:76
↓ 3 callersMethodrandom_click_swipt
(self)
tasks/Component/GeneralBattle/general_battle.py:347
↓ 3 callersFunctionrandom_normal_distribution
(a, b, n=5)
module/device/method/minitouch.py:23
↓ 3 callersFunctionrandom_normal_distribution_int
Generate a normal distribution int within the interval. Use the average value of several random numbers to simulate normal distribution. Args
module/base/utils.py:12
↓ 3 callersMethodread
读取配置文件的数据 :return:
module/gui/context/settings.py:29
← previousnext →101–200 of 1,281, ranked by callers