Jump to content
Sign in to follow this  
littleclown

_IENavigate doesn't work for me

Recommended Posts

littleclown

Why this simple code doesn't work?

$Form1 = GUICreate("Center 1.0", 800, 600, 208, 111)

$browser=GuiCtrlCreateObj(_IECreateEmbedded(),0,0,800,600)

GUISetState(@SW_SHOW)

_IENavigate($browser,"http://dir.bg")

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case Else

EndSelect

WEnd

Exit

Edited by littleclown

Share this post


Link to post
Share on other sites
mikehunt114

Your error is.......?


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]

Share this post


Link to post
Share on other sites
littleclown

Sorry:

--> IE.au3 Error from function _IENavigate, $_IEStatus_InvalidDataType

Share this post


Link to post
Share on other sites
BigDod

Try

#include <GUIConstants.au3>
#include <IE.au3>

$oIE = _IECreateEmbedded ()
$Form1 = GUICreate("Center 1.0", 800, 600, 208, 111)
$browser=GuiCtrlCreateObj($oIE,0,0,800,600)

GUISetState(@SW_SHOW)

_IENavigate($oIE,"http://dir.bg")

While 1
$msg = GuiGetMsg()

Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case Else

EndSelect
WEnd
Exit


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
mikehunt114

So that tells you that that variable is not the correct type.

$browser = _IECreateEmbedded()
$ActiveX = GuiCtrlCreateObj($browser, 0, 0, 800, 600)

You need to be able to control the _IECreateEmbedded object....that's what you need to _IENavigate, not a GUI object.

Edit: Forgot to add you need to use _IENavigate($browser, $url)....like BD did.

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]

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.