AuToItItAlIaNlOv3R Posted October 25, 2009 Posted October 25, 2009 Hi!...I would create a programm that can play a .asx link for esample : http://www.xxxxxx.com/xxxxx.asx I would like use a mediaplayer object to play it, i have this code : #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1_1 = GUICreate("Form1", 401, 274, 156, 117) $Obj1_ctrl = ObjCreate("WMPlayer.OCX.7") $Obj1_ctrl_ctrl = GUICtrlCreateObj($Obj1_ctrl, 0, 0, 400, 240) $Button1 = GUICtrlCreateButton("Exit", 320, 248, 75, 25, $WS_GROUP) $Button2 = GUICtrlCreateButton("Watch", 240, 248, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button2 ;I would like to play a .asx link EndSwitch WEnd How i can play a .asx link with that code? Thanks
AuToItItAlIaNlOv3R Posted November 8, 2009 Author Posted November 8, 2009 Hi, please help me , how i can play a .asx file in autoit?...
Bert Posted November 9, 2009 Posted November 9, 2009 I know what you need. I have the code at my office. I will post later today. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Bert Posted November 9, 2009 Posted November 9, 2009 (edited) This is an example of a media object embedded in IE. This should give you some direction. <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="./Samples/Resources/clock.avi"> <param name="animationatStart" value="true"> <param name="transparentatStart" value="true"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="Volume" value="-450"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="./Samples/Resources/clock.avi" name="MediaPlayer1" width=320 height=240 autostart=1 showcontrols=1 volume=-450> </object> Edited November 9, 2009 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now