sshrum Posted October 6, 2005 Share Posted October 6, 2005 (edited) 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 October 6, 2005 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 More sharing options...
sshrum Posted October 6, 2005 Author Share Posted October 6, 2005 (edited) 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 October 6, 2005 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 More sharing options...
Lakes Posted March 26, 2006 Share Posted March 26, 2006 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 More sharing options...
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