{"library":"pywinctl","title":"PyWinCtl","description":"PyWinCtl is a cross-platform Python library (Windows, macOS, Linux with X11/Wayland) for getting information about and controlling on-screen windows. Version 0.4.1 supports Python 3.9+ and provides window enumeration, activation, resizing, moving, and property retrieval. Release cadence is irregular, with major features added every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pywinctl"],"cli":null},"imports":["import pywinctl as pwc","import pywinctl; win = pywinctl.getAllWindows()[0]","import pywinctl; pywinctl.getAllWindows()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pywinctl\n\n# Get all windows\nwindows = pywinctl.getAllWindows()\nfor win in windows:\n    print(f'{win.title}: {win.bbox}')\n\n# Get active window\nactive = pywinctl.getActiveWindow()\nif active:\n    print('Active window title:', active.title)\n\n# Move and resize window\nwin = windows[0]\nwin.moveTo(100, 100)\nwin.resizeTo(800, 600)\n\n# Check if window is visible\nprint('Visible:', win.isVisible)","lang":"python","description":"Basic usage: enumerate windows, get active window, move/resize.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}