Jump to content

Trying to pull playlist names from WMP


 Share

Recommended Posts

Using beta 3.1.1.75

I've gotten almost everything I wanted working with the Microsoft Windows Media Player.

I can query the number of playlists:

$WMP = ObjCreate("wmplayer.ocx")
$iTotal = $WMP.PlaylistCollection.getAll().count

However, I haven't had any luck actually *pulling* playlist names.

The plan is to display the playlist names later in a list so the user can select one.

Anyone here have a code snip that shows the correct syntax for this?

TIA

Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

Never mind...I figured it out:

$iTotal = $WMP.PlaylistCollection.getAll().count
Dim $aPlayList
for $i = 0 to $iTotal - 1
    _arrayadd($aPlaylist, $WMP.PlaylistCollection.getAll().item($i).name)
Next
Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

  • 5 months later...

Never mind...I figured it out:

$iTotal = $WMP.PlaylistCollection.getAll().count
Dim $aPlayList
for $i = 0 to $iTotal - 1
    _arrayadd($aPlaylist, $WMP.PlaylistCollection.getAll().item($i).name)
Next
Is possible to get the name of the current track that is playing, using a different call to the OCX?

Thanks!

2015 - Still no flying cars, instead blankets with sleeves.

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
 Share

  • Recently Browsing   0 members

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