bf2forlife Posted May 22, 2008 Posted May 22, 2008 So can you open Internet Explorer in AutoIT window and then go to google.com?
Duffy Posted May 22, 2008 Posted May 22, 2008 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
PsaltyDS Posted May 22, 2008 Posted May 22, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now