Link to home
Start Free TrialLog in
Avatar of Pavel040997
Pavel040997

asked on

How do I get a windows title text?

I need to get the titles of all windows open.
Or I need to get just the title of the IE window how do I do that?
Thanks,Pavel.
Avatar of Maquiavelo
Maquiavelo

 Hi. You need to use API programming.

  Take a look at: http://www.acky.net/vb/vbmisc/index5.sht,
#105.

  Good luck!
ASKER CERTIFIED SOLUTION
Avatar of davepcam1
davepcam1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want to find the handles to Internet Explorer Windows then you could try using FindWindow API which has 2 parameters Classname and window caption

Classname for Internet Explorer is IEFrame

if you know both parameters then its findWindow("IEFrame","MyCaption")

else if you only know one then you can use it in this fashion

FindWindow("IEFrame", 0&) or FindWindow(0&,"Mycaption")

0& is null terminated string