Sign in to follow this  
Followers 0
MSLx Fanboy

Windows Media Player Object

3 posts in this topic

I'm trying to write a small script that uses Windows Media Player to open up a stream from a local radio station. The problem is, I've never written code with COM, nor do I know which to use.

I'd like to figure this out myself, but I can't find the name of the WMP object to use (its Player Object).

Here's the code I have so far btw

MSDN Page

$WMP = ObjCreate("MediaPlayer1")
MsgBox(0, "test", IsObj($WMP))
;With $WMP
;   .openplayer("http://players.eonstreams.com/FastAim/Player/Play.php?PulseID=14908515&SecurityKey=5553")
;EndWith

Func ExitProgram()
;   $WMP.close
    Exit
EndFunc

HotKeySet("{ESC}", "ExitProgram")

While 1
    Sleep(200)
WEnd

Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites



Thanks...I think I'll just cheat my way out of this one :) Now just to edit a tiny bit o' code


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

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  
Followers 0