
How to get the URL address?
The best way is to enumerate your windows...get the classes of the more popular
web browsers...and check the class of each window against your list...most of my
advice is possible, yet theoretical and a code snippet is at best in the
works...once you've found a browser, simply use FindWindowEx to retrieve the
child containing the text, get the text, and that is your web site
Quote:
> Hi Mattias,
> Thanks for your help. Actually I want let the application to be browser
> independent, so maybe at first I need to determine what kind of browser is
> used and then catch the URLs. If I couldn't do browser independent, the more
> kinds of browsers I can catch, the better it will be.
> Thanks again.
> I am looking forward to your help.
> Yitong
> > >Hi everyone,
> > >I want to catch the URL address from my VB application if there was a web
> > >browser open.
> > >Thanks in advance.
> > >Yitong
> > Yitong,
> > That really depends on the users choice of webbrowser. Personally, I
> > currently have 4 Netscape and 2 IE windows open, all with different
> > URLs. How would you decide which one you want to get?
> > Mattias
> > ________________________________________________
> > Mattias "BeeZo" Sj?gren
> > http://home1.2.sbbs.se/mattias.sjogren/sw/