Answers for "python get list of all open windows"

0

python get list of all open windows

import win32gui

def winEnumHandler( hwnd, ctx ):
    if win32gui.IsWindowVisible( hwnd ):
        print (hex(hwnd), win32gui.GetWindowText( hwnd ))

win32gui.EnumWindows( winEnumHandler, None )
Posted by: Guest on July-23-2020

Code answers related to "python get list of all open windows"

Python Answers by Framework

Browse Popular Code Answers by Language