Хочу раскидать окна по экрануб двигать их группами и
чтоб при изменении разрешения они автоматически масштабировалиь в тех юе пропорциях.
https://yandex.ru/search/?text=python het hwnd of all windows&lr=213
https://www.programcreek.com/python/example/89823/win32gui.MoveWindow
https://stackoverflow.com/questions/14653168/get-hwnd-of-each-window
Код: Выделить всё
import win32gui
def enumHandler(hwnd, lParam):
if win32gui.IsWindowVisible(hwnd):
#if 'Stack Overflow' in win32gui.GetWindowText(hwnd):
# win32gui.MoveWindow(hwnd, 0, 0, 1760, 1500, True)
print(win32gui.GetWindowText(hwnd), win32gui.GetWindowRect(hwnd))
win32gui.EnumWindows(enumHandler, None)