How to make Winamp launch a new instance using Script?

Discuss and share scripts and script files...
Post Reply
DorothyFan1
Posts: 104
Joined: 10 Jul 2009 15:51

How to make Winamp launch a new instance using Script?

Post by DorothyFan1 »

Currently I have a script that goes like this:

open "C:\My Music\Music File by Whatever.mp3"

And this opens Winamp and let's it play my music file. But when I create a new script with a different filename, the script launches the new song in the same Winamp instance. I would like Winamp to open a SEPARATE instance in order to play a different song..as I've checked the option "open in multiple instances". Is there a way to get the script I have to make Winamp launch a new instance when playing songs?

Thanks.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How to make Winamp launch a new instance using Script?

Post by serendipity »

DorothyFan1 wrote:Currently I have a script that goes like this:

open "C:\My Music\Music File by Whatever.mp3"

And this opens Winamp and let's it play my music file. But when I create a new script with a different filename, the script launches the new song in the same Winamp instance. I would like Winamp to open a SEPARATE instance in order to play a different song..as I've checked the option "open in multiple instances". Is there a way to get the script I have to make Winamp launch a new instance when playing songs?

Thanks.
Hi,
Maybe you can use openwith command instead.
First try:
openwith """C:\path\to\winamp\winamp.exe"" "C:\My Music\Music File by Whatever.mp3"",m;
or for any selected mp3 use <curitem>
openwith """C:\path\to\winamp\winamp.exe"" <curitem>",m;

IF above does not work, winamp allows command switch /NEW so try:

open """C:\path\to\winamp\winamp.exe"" /NEW "C:\My Music\Music File by Whatever.mp3";

I dont have winamp, so these are not tested.

DorothyFan1
Posts: 104
Joined: 10 Jul 2009 15:51

Re: How to make Winamp launch a new instance using Script?

Post by DorothyFan1 »

I've tried these and they don't work. There's got to be a solution to this.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How to make Winamp launch a new instance using Script?

Post by serendipity »

DorothyFan1 wrote:I've tried these and they don't work. There's got to be a solution to this.
OK, maybe try this then:
run """C:\path\to\winamp\winamp.exe"" /NEW ""<curitem>""";

DorothyFan1
Posts: 104
Joined: 10 Jul 2009 15:51

Re: How to make Winamp launch a new instance using Script?

Post by DorothyFan1 »

I solved the problem by creating a new default action in the File Type in the Control Panel. Now whenever I select an MP3...it launches a new instance of Winamp. But thanks for all the suggestions.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How to make Winamp launch a new instance using Script?

Post by serendipity »

DorothyFan1 wrote:I solved the problem by creating a new default action in the File Type in the Control Panel. Now whenever I select an MP3...it launches a new instance of Winamp. But thanks for all the suggestions.
I suggested the above after testing on portable winamp here. So atleast for me it did work.

Post Reply