Jump to content

Question about _IEBodyReadText ()


Recommended Posts

Here is the code

$oIE = _IECreate ("http://asdf.com", 0, 0)

Global $sText = _IEBodyReadText($oIE)

_IEQuit($oIE)

Msgbox(0, "", StringInStr("asdf", $sText))

Question is that I am wondering why that StringInStr(..) returns 0 even though asdf.com contains asdf on its page.

Somehow when I print $sText, it is displayed as multiple lines..

Something like

About asdf

What is asdf ?

asdf Forums

If a variable contains these three lines, for example, how can I find the position of "is"?

It doesn't seem like each line is concatenated with \n character

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...