in reply to Re: loading a file in winamp using perl
in thread loading a file in winamp using perl

I guess I should've specified that I'm trying to implement this as a cgi script. I've used programs that are designed like the Winamp::Control program, and if Winamp crashes you just out of luck. The idea is to implement this as a cgi script and use system to launch winamp if needed.

Alas, it appears I may have to resort to this if I don't want to learn c right now. Maybe I'll try to figure out how to modify Winamp::Control to use a CGI interface instead of the httpQ plugin.

So, my original question still stands.
  • Comment on Re: Re: loading a file in winamp using perl

Replies are listed 'Best First'.
Re^3: loading a file in winamp using perl
by Ionizor (Pilgrim) on May 21, 2003 at 04:10 UTC

    It sounds like I have just the code you're looking for. Unfortunately it's: (a) Not finished and (b) Stored on my laptop meaning it'll take me a little while to find it.

    It uses Win32::API to send calls directly to the Winamp window. It only works with Winamp 2. I'll post it here once I get my laptop out and remember where I've stored it.

    --
    Grant me the wisdom to shut my mouth when I don't know what I'm talking about.

      Hey that would be great. It just so happens I'm using Winamp 2. I appreciate any help I can get on this, even if the script isn't finished.

        In order to start Winamp you have to execute it manually with exec() or system() anyway so in the meantime you can probably achieve what you're looking for (though in a less elegant way) by setting the "Enqueue as default action" option in Winamp and calling winamp.exe <mp3 file> in an exec or system call.

        --
        Grant me the wisdom to shut my mouth when I don't know what I'm talking about.

Re^3: loading a file in winamp using perl
by Ionizor (Pilgrim) on Jun 09, 2003 at 23:46 UTC

    Well, I finally managed to dig up the code but it turns out I was stuck at the same place you were. It doesn't add files but it does just about everything else. I can still post it if you'd like to take a look.

    --
    Grant me the wisdom to shut my mouth when I don't know what I'm talking about.