python ctypes maximize window code example
Example 1: python ctypes get current window
import ctypes
window = ctypes.windll.user32.GetForegroundWindow()
Example 2: python ctypes maximize window
import win32gui, win32con
hwnd = win32gui.GetForegroundWindow()
win32gui.ShowWindow(hwnd, win32con.SW_MAXIMIZE)