mIRC Home    About    Download    Register    News    Help

Print Thread
#96015 29/08/04 07:43 AM
Joined: Aug 2004
Posts: 26
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Aug 2004
Posts: 26
I've made a handful of MP3 player scripts, most which you select the file, then load it in a user-selected program, and displays a small message in the channel window. However, in most cases like this, when the file is chosen, it overwrites any playlists you have loaded. Is there a way to make it so I could have it add the file to the playlist, instead?

#96016 29/08/04 08:02 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I'm not positive about the other files, but for winamp (being the more popular) the following parameters should work:

Winamp 3 and 5:
Play Song: winamp.exe "path\to\song.mp3"
Enqueue: winamp.exe /ADD "path\to\song.mp3

Example: If winamp was found in C:\Program Files\Winamp5\winamp.exe, and you wanted to play C:\Music\Artist - My Song.mp3..

Playing the song would use:
/run "C:\Program Files\Winamp5\winamp.exe" "C:\Music\Artist - My Song.mp3"
To enqueue it, you'd use:
/run "C:\Program Files\Winamp5\winamp.exe" /ADD "C:\Music\Artist - My Song.mp3"


-KingTomato
#96017 29/08/04 07:54 PM
Joined: Aug 2004
Posts: 26
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Aug 2004
Posts: 26
Thanks a bunch, that was just what I needed. ^^

#96018 30/08/04 01:16 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
It's very similar for Coolplayer.
/run "X:\path to\coolplayer.exe" "C:\Music\Artist - My Song.mp3" -add

Foobar2000 uses the same format as KT showed for winamp.


Link Copied to Clipboard