Jump to content

oIE check if (title of site) = active


_Kurt
 Share

Recommended Posts

Hey,

Is it possible to check in a IE object if (title of site) = $var ? I know that you can check if it's at a certain URL with this:

If _IEPropertyGet($oIE, "locationurl") = "URL" Then

Let's take google.com as an example, the site title is Google ( - Windows Internet Exporer), could we be able to detect if the title of the IE object = "Google" ? Kind of like WinActive (but for the IE obj).

Thanks,

Kurt

Awaiting Diablo III..

Link to comment
Share on other sites

How about _IEBodyReadHTML and grab the title from there?

Edit: Sorry, I mean _IEDocReadHTML.

Edited by mikehunt114
IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

Good idea,

I'll go do some tests on that ^.^ I also just had the idea of getting the source code with InetGetSource and checking for the title with StringRegExp. Thanks.

Great minds think alike....or something like that. ;)

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

*has yet to learn the majority of IE COM*

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...