Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading winamp playlist into a listbox

Status
Not open for further replies.

Antithott

IS-IT--Management
Jan 20, 2006
90
DK
Anyone tried this before.?

I can control winamp without a problem, volume etc, but i have run my head into a wall on how to load the current playlist into listbox or textbox to view what is there.

anyone tryed to do something like this before with winamp?
 
Open a winamp playlist with notepad and paste some text here. The purpose of that is to see how it looks like. BTW i believe that the songs are one at a line. If so then you can try something like:
Code:
dim sr as new io.streamreader("c:\myplaylist.extension")
while not sr.endofstream
  listbox1.items.add(sr.readline)
end while
sr.close
sr=nothing
 

This is a thread that has a good explanation of the various implementations of the m3u extension. Most do have one or two lines per song. You'll just need to add code to strip out the additional unneeded information. If you use the listbox to add songs to the list, you'll need to insure you understand all of the additional formating strings so you can re-add them on the insert.
 
Thanks for replies :)

I found a way of doing it using WM_USER,WM_COMMAND.

- Antithott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top