#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("163", 381, 270)
$oIE = ObjCreate("Shell.Explorer.2")
$GUIActiveX = GUICtrlCreateObj($oIE, -500, -115, 1000, 1000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$oIE.navigate("http://mail.163.com/")
Sleep(2000)
Dim $o_url = $oIE.locationURL
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
If $o_url <> $oIE.locationURL Then
$o_url = $oIE.locationURL
MsgBox(262144, 0, "地址变了!", 3 ,$Form1)
EndIf
WEnd
|