Created
December 22, 2021 21:37
-
-
Save eneshazr/311ce53a825619f78ea2d6d3c8f99509 to your computer and use it in GitHub Desktop.
List open windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32gui | |
def winEnumHandler(ad, x): | |
if win32gui.IsWindowVisible(ad): | |
print(win32gui.GetWindowText(ad)) | |
win32gui.EnumWindows(winEnumHandler, None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment