回复 1# hlzxcjx
如图
代码如下
#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Global $sR="file:///d:/zjt.htm"
Global $Souce = "<EMBED id=mpl name=mpl src="&"http://www.zhiboo.net/play.swf"&" tppabs="&"play.swf"&" width='450' height='420' type=application/x-shockwave-flash flashvars='&file=http://www.zhiboo.net/play.swf?autostart=true&controlbar=over&type=video&file=http://biz.vsdn.tv380.com/playlive.php?5B63686E5D445830303030303030387C313139387C317C323030307CE78FA0E6B19FE9A291E981937C687474707C666C765B2F63686E5D5B74735D317C687474703A2F2F3132312E31352E31322E37323A31383038302F445830303030303030385F313139385B2F74735DVSDNSOOONERCOM00&type=video&autostart=true&;controlbar=over&caption=false&fullscreen=true' allowfullscreen='true' allowscriptaccess='always' quality='high'>"
If FileExists("D:\zjt.htm") Then FileDelete("D:\zjt.htm")
FileWrite("D:\zjt.htm",$Souce)
_IEErrorHandlerRegister ()
$Form=GUICreate("", 480, 520, 200,100, $WS_POPUPWINDOW, $WS_EX_TOOLWINDOW)
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 492, 482)
$Minimize = GUICtrlCreateButton("最小化", 10, 480, 80, 30)
$GUI_Button_Close = GUICtrlCreateButton("退 出", 384, 480, 80, 30)
$oIE.navigate($sR)
$oIE.refresh
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_Button_Close
ExitLoop
Case $msg=$Minimize
If GUICtrlRead($Minimize)="最小化" Then
WinMove($Form,"",@DesktopWidth-80,-620,Default,Default,1)
GUICtrlSetData($Minimize,"还原")
Else
WinMove($Form,"",50,50,Default,Default,1)
GUICtrlSetData($Minimize,"最小化")
EndIf
EndSelect
WEnd
|