本帖最后由 afan 于 2009-9-10 13:13 编辑 #include <GUIConstants.au3>
#include <WindowsConstants.au3>
$main_GUI = GUICreate("嵌入flash截取", 800, 400)
GUISetState()
$Obj = ObjCreate("ShockwaveFlash.ShockwaveFlash.9")
If @error Then Exit (MsgBox(0, "Error", "Error"))
GUICreate("", 770, 250, 15, 30, BitOR($WS_CHILD, $WS_TABSTOP), -1, $main_GUI)
$control = GUICtrlCreateObj($Obj, 0, -10, 770, 300)
If $control = 0 Then Exit (MsgBox(0, "Error", "Error"))
GUISetState()
$Obj.Movie = "http://flash.weather.com.cn/sk2/shikuang.swf?id=101010100"
$Obj.Play()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
OnExit()
EndSelect
WEnd
Func OnExit()
GUIDelete()
Exit
EndFunc ;==>OnExit
就像这样,把它截了~~ |