Is there any way of getting the Playlist of Media Player
Hi GURUS,
I want to make a program in which the program will automaticaly check the Playlist and check wheather a particular song in the palylist has been palyed or not.
And it will shut down the computer after finishing the playlist or after a particular interval of time. The later part has been solved but i couldn't make the first part.
so pls help me.
Re: Is there any way of getting the Playlist of Media Player
Is it your program that is playing the music? Or do you want to check an external program if it has played the whole playlist?
Re: Is there any way of getting the Playlist of Media Player
I want to check for an external program like windows media player.
Re: Is there any way of getting the Playlist of Media Player
I have tried this many times, for Winamp it is quite simple, there is a file named Winamp.m3u, which contains the information of the current playlist. Just open it in the Binary mode and read the content.
And as far as Windows Media Player is concerned, I think the best bet would be, get the handle of the Playlist window (check properly because it is the great-great-great child of WMP) and read the content of the list.
I will be happy if someone could prove me wrong.
Re: Is there any way of getting the Playlist of Media Player
The playlist window is of class ATL:SysListView32
So, will it respond to standard SysListView32 messages?
Try it and see.
Here is how you have to get the items of an external listview control
http://www.vbforums.com/showthread.php?t=390889
Re: Is there any way of getting the Playlist of Media Player
Quote:
Originally Posted by Harsh Gupta
I have tried this many times, for Winamp it is quite simple, there is a file named Winamp.m3u, which contains the information of the current playlist. Just open it in the Binary mode and read the content.
But how do i know if particular song has been palyed or not.
Re: Is there any way of getting the Playlist of Media Player
Hey harish,
i tried by gettin the handle of WMP. But i cud get nothing. Any other idea!!!
can't we automate WMP or any other player. and get all those.