mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Dev: Added uiautomator screenshot tool, thanks @LmeSzinc
- Added dev_tools.bat Enhancement: added new features to alas.bat, now ADB config its saved in adb_port.ini file to avoid lost config when alas its updated, the file will be created ate first alas.bat start and will prompt to user to enter the config - Some tweaks on Easy_Install-V2.bat to avoid mistakes from users
This commit is contained in:
12
dev_tools/uiautomator2_screenshot.py
Normal file
12
dev_tools/uiautomator2_screenshot.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from module.device.screenshot import Screenshot
|
||||
from module.config.config import AzurLaneConfig
|
||||
from datetime import datetime
|
||||
|
||||
import module.config.server as server
|
||||
|
||||
server.server = 'cn' # Don't need to edit, it's used to avoid error.
|
||||
|
||||
s = Screenshot(AzurLaneConfig())
|
||||
i = s._screenshot_uiautomator2()
|
||||
filename = datetime.now().strftime("%d-%m-%Y_%I-%M-%S_%p")
|
||||
i.save(f'./screenshots/' + filename + ".png")
|
||||
Reference in New Issue
Block a user