Jump to content
Sign in to follow this  
clearguy

Need help for IE

Recommended Posts

clearguy

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

Share this post


Link to post
Share on other sites
bucky002

Are you sure that it's called "www.page.html"?

Share this post


Link to post
Share on other sites
clearguy

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.