Author Topic: Windows Media Player Script  (Read 6067 times)

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Windows Media Player Script
« on: August 25, 2008, 09:39:39 AM »
Some people have been asking for a script that can return song names, and such, from WMP.

In doing a bit more digging around, I found some great information on Microsoft's website, regarding the WMP Object Model.
This will be quite useful in making a script.

http://www.microsoft.com/technet/scriptcenter/funzone/player.mspx

It gives some great examples there. Someone should be able to make quite a great script with all that information.

And this will all be in the IceChat 5 (.ICE) style, as it is all VB Script.

The IceChat God

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: Windows Media Player Script
« Reply #1 on: August 25, 2008, 07:54:03 PM »
http://msdn.microsoft.com/en-us/library/bb249259(VS.85).aspx

this site also has a lot of info on wmp object model
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
Re: Windows Media Player Script
« Reply #2 on: August 26, 2008, 08:01:48 AM »
I think I may fiddle around with this.
This message brought to you by the Wonderful Wizard of Oz.

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
Re: Windows Media Player Script
« Reply #3 on: August 26, 2008, 02:07:15 PM »
COOL! this would be even better than me wanting Limewire... haha

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Windows Media Player Script
« Reply #4 on: August 27, 2008, 11:25:22 AM »
I have made some progress on it, reading in playlists and such, but WMP just plain refuses to allow me to play/stop/next/previous, it does nothing.

I can't even find a simple method that reads in the current song playing. Microsoft obviously has serious issues with the COM object for WMP11.
The IceChat God

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
Re: Windows Media Player Script
« Reply #5 on: August 27, 2008, 11:30:25 AM »
I agree with not being able to get the current song, or use any of the controls. The object is there and the methods are there but they dont actually work. when using play.controls.stop() for example, it doesnt raise any kind of error, but it doesnt stop the song. I figured later today I'd Google around a little bit more.
This message brought to you by the Wonderful Wizard of Oz.