openwith to enqueue music on sandboxed Winamp

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

openwith to enqueue music on sandboxed Winamp

Post 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?
Power-hungry user!!!

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: openwith to enqueue music on sandboxed Winamp

Post 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?

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: openwith to enqueue music on sandboxed Winamp

Post by tiago »

Yes. If I do the regular way a non-sandboxed instance will pop in parallel and execute enqueued music.
Power-hungry user!!!

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: openwith to enqueue music on sandboxed Winamp

Post 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?

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: openwith to enqueue music on sandboxed Winamp

Post by tiago »

to whom it may concern:

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

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: openwith to enqueue music on sandboxed Winamp

Post 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>""";
Power-hungry user!!!

Post Reply