mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 05:35:35 +08:00
Upd: Tips for pure black screenshots from MuMu X
This commit is contained in:
@@ -89,11 +89,8 @@ class AScreenCap(Connection):
|
|||||||
filepath = os.path.join(self.config.ASCREENCAP_FILEPATH_LOCAL, ver, arc, 'ascreencap')
|
filepath = os.path.join(self.config.ASCREENCAP_FILEPATH_LOCAL, ver, arc, 'ascreencap')
|
||||||
if not os.path.exists(filepath):
|
if not os.path.exists(filepath):
|
||||||
logger.critical('No suitable version of aScreenCap lib available for this device')
|
logger.critical('No suitable version of aScreenCap lib available for this device')
|
||||||
if self.is_mumu_family:
|
logger.critical('Please use ADB or uiautomator2 for screenshots instead')
|
||||||
logger.critical('If you are using MuMu X, please set screenshot method to scrcpy')
|
raise RequestHumanTakeover
|
||||||
else:
|
|
||||||
logger.critical('Please use ADB or uiautomator2 for screenshots instead')
|
|
||||||
raise RequestHumanTakeover
|
|
||||||
|
|
||||||
logger.info(f'pushing {filepath}')
|
logger.info(f'pushing {filepath}')
|
||||||
self.adb_push(filepath, self.config.ASCREENCAP_FILEPATH_REMOTE)
|
self.adb_push(filepath, self.config.ASCREENCAP_FILEPATH_REMOTE)
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy):
|
|||||||
if self.config.Emulator_ScreenshotMethod == 'DroidCast':
|
if self.config.Emulator_ScreenshotMethod == 'DroidCast':
|
||||||
self.droidcast_stop()
|
self.droidcast_stop()
|
||||||
else:
|
else:
|
||||||
logger.warning('If you are using MuMu X, please set screenshot method to scrcpy')
|
logger.warning('If you are using MuMu X, please upgrade to version >= 12.1.5.0')
|
||||||
self._screen_black_checked = False
|
self._screen_black_checked = False
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user