回复 10# chamlien
试了下,点击不会出错哦`
#NoTrayIcon
Dim $oIE, $GUIActiveX, $GUI_Button_Back, $GUI_Button_Forward
Dim $GUI_Button_Home, $msg ,$GUI_EVENT_CLOSE=-3
$oIE = ObjCreate("Shell.Explorer.2")
GUICreate("文件共享测试版", 890, 600)
GUISetBkColor(0x00E0FFFF)
$GUIActiveX = GUICtrlCreateObj ($oIE, -1, 50, 890, 600)
$GUI_Button_Back = GUICtrlCreateButton("后退", 53, 8, 70, 28)
$GUI_Button_Forward = GUICtrlCreateButton("前进", 148, 8, 70, 28)
$GUI_Button_Home = GUICtrlCreateButton("主页", 246, 8, 70, 28)
;~ MsgBox(64,"温馨提示", "如果要求输入用户名的话呢"& @CRLF & @CRLF &"输入administrator按回车键试试吧")
$oIE.navigate("\\127.0.0.1")
GUISetState(1)
;~ GUISetState
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $GUI_Button_Home
$oIE.navigate("\\127.0.0.1")
Case $msg = $GUI_Button_Back
$oIE.GoBack
Case $msg = $GUI_Button_Forward
$oIE.GoForward
EndSelect
WEnd
|