Jump to content
Sign in to follow this  
bf2forlife

IE in AutoIT window

Recommended Posts

im only learning but here try this

#include <GUIConstants.au3>

#include <IE.au3>

$oIE = _IECreateEmbedded ()

$Form1 = GUICreate("Example", 600, 600)

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 1000, 1000)

GUISetState(@SW_SHOW)

_IENavigate ($oIE, "http://www.google.com")

While 1

$Msg = GUIGetMsg()

Switch $Msg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

Share this post


Link to post
Share on other sites

Duffy's demo, cleaned up a bit:

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

Global $sURL = "http://www.google.com"

Global $oIE = _IECreateEmbedded()
Global $Form1 = GUICreate("Example", 640, 480)
Global $GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 620, 420)
Global $Button1 = GUICtrlCreateButton("Google", 270, 440, 100, 30)
GUISetState(@SW_SHOW)
_IENavigate($oIE, "http://www.google.com")

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            _IENavigate($oIE, "http://www.google.com")
    EndSwitch
WEnd

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×
×
  • Create New...