diff --git a/main.py b/main.py index 9891e37..2294eba 100644 --- a/main.py +++ b/main.py @@ -55,6 +55,11 @@ import pywintypes import win32gui +search_title = f"*{title_with_version}" +hwnd = win32gui.FindWindow(None, search_title) +x0, y0, x1, y1 = win32gui.GetWindowRect(hwnd) +win32gui.MoveWindow(hwnd, x0, y0, x0+1536, y0+864, True) +""" try: hwnd = win32gui.FindWindow(None, title_with_version) x0, y0, x1, y1 = win32gui.GetWindowRect(hwnd) @@ -70,6 +75,7 @@ hwnd = win32gui.FindWindow(None, second_except) x0, y0, x1, y1 = win32gui.GetWindowRect(hwnd) win32gui.MoveWindow(hwnd, x0, y0, x0+1536, y0+864, True) +""" def program_exit(status: int): # so we don't need to import the entire sys module log(f"exited program with error code {status}")