Jump to content
Sign in to follow this  

Streaming with autoit

Recommended Posts


Hi!...I would create a programm that can play a .asx link for esample :


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)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
Case $Button2
;I would like to play a .asx link


How i can play a .asx link with that code?


Share this post

Link to post
Share on other sites

Hi, please help me , how i can play a .asx file in autoit?...

Share this post

Link to post
Share on other sites

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" 
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 by Volly

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.