Jump to content

Windows Media Player Object

Recommended Posts

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


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

Func ExitProgram()
;   $WMP.close

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

While 1

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...