#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
Local $all_width = @DesktopWidth - 10
Local $all_hight = @DesktopHeight - 70
Local $tel="123456"
GUICreate($tel, $all_width, $all_hight)
GUICtrlCreateTab(8, 8, $all_width - 20, $all_hight - 50)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
GUICtrlCreateObj($oIE, 10, 40, $all_width-30, $all_hight-90);;;;;;;;;;;;;;;;;;;;
$Button1 = GUICtrlCreateButton("开始", 6, $all_hight - 30, 75, 25, 0)
$Button2 = GUICtrlCreateButton("刷新", 86, $all_hight - 30, 75, 25, 0)
$Button3 = GUICtrlCreateButton("关闭", 166, $all_hight - 30, 75, 25, 0)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $Button3
Exit
Case $nMsg = $Button1
_go()
Case $nMsg = $Button2
_IEAction ($oIE, "refresh")
EndSelect
WEnd
Func _go()
_IENavigate($oIE, "http://www.baidu.com/")
EndFunc ;==>_go
Func _gogo()
_IEAction ($oIE, "refresh")
EndFunc ;==>_go
|