mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
AlasGG
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 datetime import datetime
|
||||
|
||||
import module.config.server as server
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.device.screenshot import Screenshot
|
||||
|
||||
server.server = 'cn' # Don't need to edit, it's used to avoid error.
|
||||
|
||||
s = Screenshot(AzurLaneConfig(config_name="alas"))
|
||||
s.image = s.screenshot_uiautomator2()
|
||||
filename = datetime.now().strftime("%d-%m-%Y_%I-%M-%S_%p")
|
||||
s.image_save(f"./screenshots/{filename}.png")
|
||||
Reference in New Issue
Block a user