PDA

View Full Version : Is it posibble to open a playlist directly in Winamp?



Mastiff
October 13th, 2002, 12:55 PM
Hi!
I would like to open a playlist directly (via the Playlist opener) without using the method

c:\program files\winamp\winamp.exe c:\playlists\234.mpu

The problem with this approach is that it opens a new instance of winamp if one is already running, and I can't disallow multiple instances since I use one (winamp.exe in the mentioned directory) for my bedroom, via one sound card, and another one (c:\program files\winampbad\winampbad.exe) for my bathroom. I've also tried to close down Winamp first and then opening the list, the problem is that it sometimes makes it loose the sound card assignement, so it starts playing via default soundcard. And believe me, suddenly start playing my death/black/speed metal for my wife when she's having a nice, warm bath and listening to Celine Dion is something that can scare even the devin the black metal bands keeps shouting about! :evil:

So what I want is an automated way of using the playlist number in the register to open the file in an already running copy of winamp. I'm sure it's possible, perhaps via the Winamp exported group's open file command and pasting the reg value to the box it will open. But how?

Thanks a lot in advance, guys!

Mastiff
October 13th, 2002, 12:55 PM
Nope. I thought it worked at first, but it turned out that for some reason or another it opens up a new instance even if Winamp is already running. On the page you gave a pointer to I found the code that lets me clear a playlist, but one that will let me insert a new one and start it up. :(

Icthus
October 13th, 2002, 12:55 PM
I think you could use the command line option "/ADD" to do what you want. Just make a Girder command to execute the command line C:\path\to\winamp.exe /ADD C:\playlist.m3u. This only works if winamp is open.

You may also want to check this out:

http://www.winamp.com/nsdn/winamp2x/dev/sdk/api.jhtml


Branton