Page 1 of 1
How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 14:11
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.
Re: How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 14:57
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.
Re: How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 21:16
by DorothyFan1
I've tried these and they don't work. There's got to be a solution to this.
Re: How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 22:20
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>""";
Re: How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 22:24
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.
Re: How to make Winamp launch a new instance using Script?
Posted: 23 Dec 2009 22:27
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.