1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 12:08:21 +08:00

Fix: Resolution check for scrcpy

This commit is contained in:
LmeSzinc
2023-01-07 02:43:52 +08:00
parent fa5dd91696
commit 81106a4dda
3 changed files with 24 additions and 3 deletions

View File

@@ -226,6 +226,14 @@ class Uiautomator2(Connection):
hierarchy = etree.fromstring(content.encode('utf-8'))
return hierarchy
@retry
def window_size_uiautomator2(self) -> t.Tuple[int, int]:
"""
Returns:
(width, height)
"""
return self.u2.window_size()
@retry
def proc_list_uiautomato2(self) -> t.List[ProcessInfo]:
"""