Sign in to follow this  
Followers 0
clearguy

Need help for IE

4 posts in this topic

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



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

Share this post


Link to post
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)

Share this post


Link to post
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

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  
Followers 0