#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Example1()
; example 1
Func Example1()
Local $msg
GUICreate("My GUI", 1010, 200) ; will create a dialog box that when displayed is centered
$oIE = _IECreateEmbedded()
$ActiveX = GUICtrlCreateObj($oIE,2,2,1000,200)
_IENavigate($oIE,"http://www.google.com", 1)
GUISetState(@SW_SHOW) ; will display an empty dialog box
Sleep(2000)
$oForm = _IEFormGetObjByName($oIE, "f")
$oQuery = _IEFormElementGetObjByName($oForm, "q")
_IEFormElementSetValue($oQuery, "http://autoit-script.ru")
_IEFormSubmit($oForm, 0)
_IELoadWait($oIE)
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
EndFunc ;==>Example1