I want to write a code which when executed gives me title of all opened windows one by one. so that i can check title of each window. :cool:
Printable View
I want to write a code which when executed gives me title of all opened windows one by one. so that i can check title of each window. :cool:
There are loads of window open posts. Check the API section ;)
Look for EnumWindows.
[shameless plug] Alternatively, you could check out my CWindows+CWindow classes in the Codebank, CWindows encapsulates EnumWindows as a collection of all open windows at, which you can enumerate using For Each to get a CWindow object for each window, and then get its title using .Caption on that :) Link here [/shameless plug]
Edit: Fixed end plug tag - Hack :D
Thanks a lot Penagate,Moeur and BodWadUK :wave:
No worries, glad to help :)