Results 1 to 7 of 7

Thread: Is there any way of getting the Playlist of Media Player

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    13

    Unhappy 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.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    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?


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    13

    Re: Is there any way of getting the Playlist of Media Player

    I want to check for an external program like windows media player.

  4. #4
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    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.

  5. #5
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    13

    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.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    13

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width