Page 1 of 1

openwith to enqueue music on sandboxed Winamp

Posted: 13 Aug 2011 23:32
by tiago
I have a running sandboxed instance of Winamp and I'd like to enqueue music into it using XY's Open With (CTRL ALT enter). How do I do this?

Re: openwith to enqueue music on sandboxed Winamp

Posted: 13 Aug 2011 23:51
by nas8e9
tiago wrote:I have a running sandboxed instance of Winamp and I'd like to enqueue music into it using XY's Open With (CTRL ALT enter). How do I do this?
In terms of regular Winamp usage, the /ADD parameter will enqueue a music file like this:

Code: Select all

C:\Program Files\Winamp\winamp.exe /ADD C:\mp3\whatever.mp3
In terms of XYplorer's Portable File Associations (PFA), the line in Tools > Customize File Associations, could be:

Code: Select all

"Enqueue music file in Winamp|C:\Program Files\Winamp\winamp.exe" mp3;wav;flac>C:\Program Files\Winamp\winamp.exe /ADD
Do you mean that you need to do additional stuff because Winamp is sandboxed?

Re: openwith to enqueue music on sandboxed Winamp

Posted: 14 Aug 2011 00:11
by tiago
Yes. If I do the regular way a non-sandboxed instance will pop in parallel and execute enqueued music.

Re: openwith to enqueue music on sandboxed Winamp

Posted: 14 Aug 2011 00:29
by nas8e9
tiago wrote:Yes. If I do the regular way a non-sandboxed instance will pop in parallel and execute enqueued music.
In that case the forum of your sandbox software might be a better bet than XYplorer's?

Re: openwith to enqueue music on sandboxed Winamp

Posted: 15 Aug 2011 00:09
by tiago
to whom it may concern:

run """c:\Programas\Sandboxie\start.exe"" ""D:\Programas\Portable\Winamp 5\winamp.exe"" /ADD ""<curitem>""";

Re: openwith to enqueue music on sandboxed Winamp

Posted: 16 Aug 2011 19:43
by tiago
I had problems with this when trying to add several files at once so:
*use sc wait(), this seems to solve an instability on queuing files
*winamp itself seems to have a problem queuing +160. I successfully added 150 and 160 is still experimental. As the operation is slow I'm yet to discover whether "150" means total of files loaded (previous+queued), loads of files (so anything like 150+150+150 would be allowed) or a limited amount of characters for path names on winamp memory. For the gurus' meditation.

Code: Select all

  end(getinfo("CountSelected") > 160), "No more than 160 files can be run this way!"; foreach ($t, get ("selecteditemspathnames"), "<crlf>") { run """c:\Programas\Sandboxie\start.exe"" ""D:\Programas\WinampPortable\winamp.exe"" /ADD ""$t"""; wait 300; }; status "ok!";
Obvious conclusion:
Run curitem sandboxed = no context menu required!

run """c:\Programas\Sandboxie\start.exe"" ""<curitem>""";