#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compression=4
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ie.au3>
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
#include <WindowsConstants.au3>
#include <Encoding.au3>
#include <GuiEdit.au3>
#include <File.au3>
#include <GDIPlus.au3>
#include <GUICtrlHyperLink.au3>
#include <ScreenCapture.au3>
#include <WinAPIEx.au3>
#include <APIConstants.au3>
Opt("GUIResizeMode", $GUI_DOCKALL)
_IEErrorHandlerRegister()
Global $iHeight = @DesktopHeight - 100, $iWidth = @DesktopWidth - 100; ширина
Global $hGui = GUICreate('Internet Explorer Server', $iWidth, $iHeight-4, 50, 20, $WS_SIZEBOX + $WS_SYSMENU)
Global $oIE = _IECreateEmbedded()
Global $iIE = GUICtrlCreateObj($oIE, 0, 0, $iWidth, $iHeight - 40)
Global $sUrlLast
$iProgress = GUICtrlCreateProgress(0, $iHeight - 40, $iWidth - 342, 16)
$iCurrentUrl = GUICtrlCreateLabel('', $iWidth - 340, $iHeight - 40, 340, 16)
GUICtrlSetResizing($iProgress, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
GUICtrlSetResizing($iCurrentUrl, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
GUICtrlSetResizing($iIE, $GUI_DOCKBORDERS)
GUICtrlSetFont($iCurrentUrl, 10, 400, 1, 'georgia')
ObjEvent($oIE, 'IEEvent_', 'DWebBrowserEvents2')
_IENavigate($oIE, 'about:blank')
GUISetState(@SW_SHOW, $hGui)
While 1
$sUrl = _IEPropertyGet($oIE, 'locationurl')
If $sUrl <> $sUrlLast Then
GUICtrlSetData($iCurrentUrl, $sUrl)
$sUrlLast = $sUrl
EndIf
Switch GUIGetMsg($hGui)
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
Sleep(50)
WEnd
Func IEEvent_ProgressChange($i_Progress, $i_ProgressMax)
If $i_ProgressMax <= 0 Then Return
$iPercent = ($i_Progress * 100) / $i_ProgressMax
GUICtrlSetData($iProgress, $iPercent)
If $iPercent >= 100 Then GUICtrlSetData($iProgress, 0)
EndFunc ;==>IEEvent_ProgressChange