Announcement

Collapse
No announcement yet.

Automation: how to play files one after one from external program or plugin ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automation: how to play files one after one from external program or plugin ?

    Hi,

    I want to make a windows external program or Winamp plugin

    to play files one after one,

    I mean when one song ends the program decides which next song to start.

    I am looking for the simplest way to do it,
    for example - is it possible to do it from command line in Windows ?

    Is there any command-line option to exit WinAmp at the end of the song?
    In this case the program can determine that WinAmp process finished and
    will start next WinAmp process.

    Also any other ideas are welcome.

  • #2
    Originally Posted by aleksey_WinAmp View Post
    Hi,

    I want to make a windows external program or Winamp plugin

    to play files one after one,

    I mean when one song ends the program decides which next song to start.

    I am looking for the simplest way to do it,
    .

    it's already in Winamp and called Shuffle play.
    latest version of Winamp
    DSP Plug V2.41
    Language Packs

    Comment


    • #3
      Originally Posted by NJK View Post
      it's already in Winamp and called Shuffle play.
      No, I need to implement my own logic to choose the next song,
      using C# or C++ or JScript, etc.

      Comment


      • #4
        Originally Posted by aleksey_WinAmp View Post
        No, I need to implement my own logic to choose the next song,
        using C# or C++ or JScript, etc.
        well, what are you waiting for, start with the script?
        latest version of Winamp
        DSP Plug V2.41
        Language Packs

        Comment


        • #5
          Originally Posted by NJK View Post
          well, what are you waiting for, start with the script?
          I need some API to control the WinAmp,
          so I could send command like "play 1.mp3",
          then somehow wait for finish,
          then send "play 2.mp3", etc.

          Comment


          • #6
            You can see the command line options by typing "winamp /?" (without quotes) in the command window opened at the Winamp installation location.
            Attached Files
            Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin

            Comment


            • #7
              Originally Posted by ryerman View Post
              You can see the command line options by typing "winamp /?" (without quotes) in the command window opened at the Winamp installation location.
              Thanks, do you have also any info about these two items there:

              /COMMAND=<id> Will send the specified command or message <id> via the appropriate message type so
              less general options can be used without Winamp specifically coding it into these options.

              /WA_IPC <id> <param> These will not return any values and are just for sending an action e.g. toggling a state.
              You will need to consult the Winamp SDK or use a resource editor to obtain appropriate <id>
              and <param> values to be able to use these.

              Comment


              • #8
                Originally Posted by aleksey_WinAmp View Post
                Thanks, do you have also any info about these two items there:
                Sorry, but I don't understand all the advanced options like those.
                But DrO does.
                He was the last Winamp developer and probably wrote the code for the command line options.
                He is now developing WACUP and can be found here: https://getwacup.com/community/index.php
                Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin

                Comment


                • #9
                  Originally Posted by aleksey_WinAmp View Post
                  No, I need to implement my own logic to choose the next song,
                  using C# or C++ or JScript, etc.
                  If you can do that before playing the first song, then you could create a playlist file (M3U or M3U8) containing a list of the paths to the songs, in the order you want them to play.
                  For the command "/ADD <file>", file can be a M3U or M3U8 file. No special formatting is required and the file specs should not be surrounded by quotes.

                  code:
                  "C:\Program Files (x86)\Winamp\winamp.exe" /ADD "C:\path\to\list of files\Files.m3u8"
                  Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin

                  Comment


                  • #10
                    Originally Posted by ryerman View Post
                    If you can do that before playing the first song, then you could create a playlist file (M3U or M3U8) containing a list of the paths to the songs, in the order you want them to play.
                    For the command "/ADD <file>", file can be a M3U or M3U8 file. No special formatting is required and the file specs should not be surrounded by quotes.

                    code:
                    "C:\Program Files (x86)\Winamp\winamp.exe" /ADD "C:\path\to\list of files\Files.m3u8"
                    Yes, thanks, I also see it but it will become the endless playlist or what ? :-)

                    If the radio station works automatically non stop then such list will become too big and the system will crash at some moment, I think.

                    Perhaps I could try to use the command /CLEAR but in this case I have to know the moment when the last song finished.

                    I installed it, it works, even in Windows XP :-)

                    Indeed, I can add songs to the playlist by /ADD then start it by /PLAY
                    Then if I want to clear the playlist I can /CLEAR ( it continues to play )
                    /ADD new file, then /STOPFADE and /PLAY

                    but I wanted to choose the next song after the previous finished so
                    anyway I need to know the length of the songs or
                    detect the moment when the player stops.

                    Comment


                    • #11
                      Maybe the "Playlist File Remover" plug-in will help. http://web.archive.org/web/201204150...z/plugins.html
                      It removes each track from the Playlist Editor, after it is played.
                      And it includes an option to close Winamp after the last track is removed.

                      An alternative is to use the ActiveWinamp plug-in, but that is much more complicated.
                      Howzit....Whatzit...what tha...? How to tune up, and keep your Winamp player humming along. Search this Forum to find others who have driven down your road and have advice and tips to help you out.

                      Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin

                      Comment

                      Working...
                      X
                      😀
                      🥰
                      🤢
                      😎
                      😡
                      👍
                      👎