How do I get a list of the name/text of all opened windows?
I tried pywinauto:
pywinauto.findwindows.find_windows(title_re="*")
but using *
as a regex raises an error
I tried win32gui: It has
win32gui.GetWindowText(win32gui.GetForegroundWindow())
But in its docs I couldn't find a getAllWindows or something that returns all names/texts of open hwnd handles: http://timgolden.me.uk/pywin32-docs/contents.html