Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 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.
aleksey_WinAmp is offline   Reply With Quote
Old 23rd August 2020, 10:03   #2
NJK
FRYSK BLOED TSJOCH OP- FRISIAN
 
NJK's Avatar
 
Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 15,440
Quote:
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.

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
NJK is offline   Reply With Quote
Old 23rd August 2020, 11:31   #3
aleksey_WinAmp
Junior Member
 
Join Date: Aug 2020
Posts: 6
Quote:
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.
aleksey_WinAmp is offline   Reply With Quote
Old 23rd August 2020, 12:15   #4
NJK
FRYSK BLOED TSJOCH OP- FRISIAN
 
NJK's Avatar
 
Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 15,440
Quote:
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?

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
NJK is offline   Reply With Quote
Old 23rd August 2020, 12:27   #5
aleksey_WinAmp
Junior Member
 
Join Date: Aug 2020
Posts: 6
Quote:
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.
aleksey_WinAmp is offline   Reply With Quote
Old 23rd August 2020, 13:53   #6
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 724
You can see the command line options by typing "winamp /?" (without quotes) in the command window opened at the Winamp installation location.
Attached Files
File Type: txt Winamp Commandline Options.txt (4.4 KB, 78 views)

Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin
ryerman is offline   Reply With Quote
Old 23rd August 2020, 15:21   #7
aleksey_WinAmp
Junior Member
 
Join Date: Aug 2020
Posts: 6
Quote:
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:

Quote:
/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.
aleksey_WinAmp is offline   Reply With Quote
Old 23rd August 2020, 15:52   #8
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 724
Quote:
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
ryerman is offline   Reply With Quote
Old 23rd August 2020, 16:51   #9
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 724
Quote:
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
ryerman is offline   Reply With Quote
Old 24th August 2020, 07:19   #10
aleksey_WinAmp
Junior Member
 
Join Date: Aug 2020
Posts: 6
Quote:
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.
aleksey_WinAmp is offline   Reply With Quote
Old 24th August 2020, 15:05   #11
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 724
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
ryerman is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump