In Windows, how can I view a list of all the titles of all Windows that are open.
(Preferably with some unique identifier like handle)
I took the PowerShell script from Enumerating all Windows-windows with a PowerShell function and a callback function and modified it slightly.
It print the window name and handle.
Use the EnumWindows() Windows API function. It will invoke the application-defined callback function argument passed to it for all the top-level windows on the screen, passing it the handle of each one, until the callback returns
Here's a simple Python 2.x console program I wrote that uses that function (and a few others to determine which windows might actually be visible on the desktop -- many of the "top-level" windows that
You could redirect the output to a text file or the program could be modified to display the list in a window or dialog box using several different GUI modules available, including the tk/tcl interface module called