Jump to content

Need help for IE


Recommended Posts

Hi,

I wrote this code to open a website and to search a string on this site,but it cannot find the string:

#include <IE.au3>
$oIE = _IECreate ()
_IENavigate ($oIE, "http://www.page.html")
MsgBox(0,"info","page loaded")
$source = _IEDocReadHTML($oIE)
$result = StringInStr($source,"function")
MsgBox(0,"info","there is:",$result)

what is wrong?

Thanx for your help

Link to comment
Share on other sites

Not sure if it was the cause of your problems, but you had a "," instead of an "&".

#include <IE.au3>
$oIE = _IECreate ("http://www.page.html")
MsgBox(0, "info", "page loaded")
$source = _IEDocReadHTML ($oIE)
$result = StringInStr($source, "function")
MsgBox(0, "info", "there is:" & $result)
thanx it works :D
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...