#include <IE.au3>
#include <GUIConstantsEx.au3>
Global $sUrl = 'http://autoit-script.ru/'
$hForm = GUICreate('', 600, 550)
$oIE = _IECreateEmbedded()
$oObject = ObjEvent($oIE, 'IEEvent_', 'DWebBrowserEvents2')
$Tab1 = GUICtrlCreateTab(2, 2, 590, 451)
$Tab = GUICtrlCreateTabItem('tab')
$GUIActiveX = GUICtrlCreateObj($oIE, 7, 42, 500, 406)
$nButton = GUICtrlCreateButton('Go', 5, 520, 30, 20)
$nProgress = GUICtrlCreateProgress(40, 520, 555, 20)
;GUICtrlSetState(-1, $GUI_HIDE)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $nButton
;GUICtrlSetState(-1, $GUI_SHOW)
_IENavigate($oIE, $sUrl)
;GUICtrlSetState(-1, $GUI_HIDE)
EndSwitch
WEnd
Func IEEvent_ProgressChange($i_Progress, $i_ProgressMax)
ConsoleWrite($i_Progress & @TAB & $i_ProgressMax & @LF)
If $i_ProgressMax <= 0 Then Return
GUICtrlSetData($nProgress, ($i_Progress * 100) / $i_ProgressMax)
EndFunc ;==>IEEvent_ProgressChange