mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Add:When using WSA, the screenshot method and control method will be locked to uiautomator2
This commit is contained in:
parent
b12edf27ca
commit
3e3a199c66
@ -21,6 +21,9 @@ class Device(Screenshot, Control, AppControl):
|
|||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
if 'wsa' in self.config.Emulator_Serial:
|
||||||
|
self.config.Emulator_ScreenshotMethod = 'uiautomator2'
|
||||||
|
self.config.Emulator_ControlMethod = 'uiautomator2'
|
||||||
self.screenshot_interval_set()
|
self.screenshot_interval_set()
|
||||||
|
|
||||||
def handle_night_commission(self, daily_trigger='21:00', threshold=30):
|
def handle_night_commission(self, daily_trigger='21:00', threshold=30):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user