MSLx Fanboy Posted July 4, 2005 Posted July 4, 2005 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 btwMSDN 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())
w0uter Posted July 4, 2005 Posted July 4, 2005 maby the \tests\activeX\ folder from the beta wil help you. it has 2 wmp examples My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
MSLx Fanboy Posted July 4, 2005 Author Posted July 4, 2005 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())
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