Answers for "python get all open current window"

1

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

Python Answers by Framework

Browse Popular Code Answers by Language