Winamp & Shoutcast Forums Automation: how to play files one after one from external program or plugin ?

 23rd August 2020, 08:06 #1 aleksey_WinAmp Junior Member   Join Date: Aug 2020 Posts: 6 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.
23rd August 2020, 10:03   #2
NJK
FRYSK BLOED TSJOCH OP- FRISIAN

Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 15,478
Quote:
 Originally Posted by aleksey_WinAmp 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.

Each Thursday a new show on Celtica Radio with Darkwave music.

Nope, it's not a radiostation just a non stop darkwave music stream

WINAMPSHOUTCAST

23rd August 2020, 11:31   #3
aleksey_WinAmp
Junior Member

Join Date: Aug 2020
Posts: 6
Quote:
 Originally Posted by NJK 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.

23rd August 2020, 12:15   #4
NJK
FRYSK BLOED TSJOCH OP- FRISIAN

Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 15,478
Quote:
 Originally Posted by aleksey_WinAmp No, I need to implement my own logic to choose the next song, using C# or C++ or JScript, etc.

Each Thursday a new show on Celtica Radio with Darkwave music.

Nope, it's not a radiostation just a non stop darkwave music stream

WINAMPSHOUTCAST

23rd August 2020, 12:27   #5
aleksey_WinAmp
Junior Member

Join Date: Aug 2020
Posts: 6
Quote:
 Originally Posted by NJK 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.

23rd August 2020, 13:53   #6
ryerman
Major Dude

Join Date: Mar 2010
Posts: 726
You can see the command line options by typing "winamp /?" (without quotes) in the command window opened at the Winamp installation location.
Attached Files
 Winamp Commandline Options.txt (4.4 KB, 120 views)

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

23rd August 2020, 15:21   #7
aleksey_WinAmp
Junior Member

Join Date: Aug 2020
Posts: 6
Quote:
 Originally Posted by ryerman 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:

Quote:
 /COMMAND= Will send the specified command or message via the appropriate message type so less general options can be used without Winamp specifically coding it into these options. /WA_IPC 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 and values to be able to use these.

23rd August 2020, 15:52   #8
ryerman
Major Dude

Join Date: Mar 2010
Posts: 726
Quote:
 Originally Posted by aleksey_WinAmp 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

23rd August 2020, 16:51   #9
ryerman
Major Dude

Join Date: Mar 2010
Posts: 726
Quote:
 Originally Posted by aleksey_WinAmp 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

24th August 2020, 07:19   #10
aleksey_WinAmp
Junior Member

Join Date: Aug 2020
Posts: 6
Quote:
 Originally Posted by ryerman 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 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 )

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.

 24th August 2020, 15:05 #11 ryerman Major Dude     Join Date: Mar 2010 Location: Canada Posts: 726 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. http://forums.winamp.com/showpost.ph...98&postcount=7 https://www.pretentiousname.com/gen_scripting/ Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin
 Winamp & Shoutcast Forums Automation: how to play files one after one from external program or plugin ?