#include <GUIConstants.au3>
#NoTrayIcon
GUICreate("IE浏览器", 800, 600)
$1 = ObjCreate("Shell.Explorer.2")
$2 = GUICtrlCreateObj($1, 0, 0, 530, 396)
$B1 = GUICtrlCreateButton("打开", 530, 16, 75, 25, 0)
$B2 = GUICtrlCreateButton("刷新", 530, 48, 75, 25, 0)
$B3 = GUICtrlCreateButton("退出", 530, 376, 75, 25, 0)
$B4 = GUICtrlCreateButton("关于", 530, 344, 75, 25, 0)
$1.navigate("http://fm.mp3.baidu.com/")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $B3
Exit
Case $B2
$1.refresh
Case $B4
MsgBox(64, "关于", "版权官方所有。叁居士修改")
Case $B1
$F = FileOpenDialog("打开", "", "Flash文件(*.swf)|所有文件(*.*)")
EndSwitch
WEnd
大家试一下,上面的浏览器,只要刷新,或者重新
$1.navigate("http://fm.mp3.baidu.com/")
页面中的FLASH都不能正常使用。。(只有程序运行第一次打开,而面中的FLASH才能用。) |