MP3 Player 2.0
mIRC Code
+ 9 likes
Please Register to submit score.
| Average Score | 6.8 (of 11 scores) |
| Date Added | Aug 31, 2008 |
| Last Updated | Sep 04, 2008 |
| Tags | mp3 player |
Introduction


My MP3 Player script for mIRC.
No weird, unnecessary features. Just a basic MP3 player with some extra's ;)
Features:
- Plays MP3 files (ofcourse)
- Shows basic information about MP3 file:
Title
Length
Size
Bitrate
- Shows current position of the playing MP3 and has scrollbar to change the position
- Has Play, Pause / Resume, Stop, Previous and Next buttons
- Repeats single track
- Has 3 Play Modes:
Normal (track by track, stops at end of the playlist)
Repeat all
Shuffle
- Shows your PCs master volume and has scrollbar to change it
- Has 3 direct search links to Google, Wikipedia and YouTube
- Shows how much MP3s you have in the playlist
- Supports 3 ways of adding files:
Add single MP3
Add M3U playlist (also supports EXTENDED M3U)
Add whole folder at once (inclusing subfolders)
- Remove and Remove all buttons
- Broadcast button (Tell what I'm listening to)
- Button to Hide / Show the playlist (a.k.a. Mini Mode)
- Saves last position and size (mini / normal)
- Filter function
- Create your own playlists and save / load / delete them
Bold features are new in version 2.0
NOTE: The idea for a position scrollbar and volume scrollbar is token from Neptune and Daveohs MP3 Player. My script however is built from scratch, so I did not took their script, just the idea. Big thanks to them for that!
All other features might also be in other MP3 Players, but I did not take a look at them before writing my own ;)
Installation:
Just copy the script in an (empty) remote file, then save and use /mp3player or the right mouse button menu to open!
How to use:
Some basic instructions for functions that don't use buttons with their names on it:
- Double click a MP3 file in your playlist to start playing it
- Double click a playlist to load it
- Use + to create a new playlist
- Use - to delete a playlist
- You can edit the name of a playlist by just editing the field above Filter
- To use the filter function (search), just type something in the field next to the word Filter
Note that changes to a playlist will ONLY be saved if you press the Save playlist button
I tested it for bugs, but there might still be some. If you find one, please tell me!
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 11:30 am
Posted on Sep 2, 2008 11:30 am
If you simply hate it or have a suggestion on what to improve, please tell me ;) thx
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 11:58 am
Posted on Sep 2, 2008 11:58 am
Ok, I'll go all out: I hate the dialog layout.
But the coding is pretty good and everything that I've used on it seems to work. GJ.
Edit: This deserved more than a 3.0 >:(. Even tho it's ugly it works very well. (I haven't rated it)
But the coding is pretty good and everything that I've used on it seems to work. GJ.
Edit: This deserved more than a 3.0 >:(. Even tho it's ugly it works very well. (I haven't rated it)
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 12:14 pm
Posted on Sep 2, 2008 12:14 pm
I really really like the use of simple coding and nice and neat layout where I dont have to guess where things are. I would love to use it more if you release another version with a built in "Playlist" feature.
All and all I love it and hope to see some more work come out of this as a result.
Few Suggestions for another release:
-> Playlist feature ability to:
Add File / Del File
Add Dir / Del Dir
Save / Load
-> Search Feature to search the music directory for a song, if you have thousands (this would be nice)
-> Mute button for volume control
-> Spot (textbox) for message delivery format with tags for a custom message delivery: &Artist, &Song ect. (tell what im listening to)
-> Option to broadcast what im listening to (chan,active,echo,amsg)
-> Refresh button to "refresh" the music directory rather than having to add and deleting it manually each time something has been added like a song
->Information About Selected should include: Artist, Album, Genre & Year.
Cheers,
Buggs
All and all I love it and hope to see some more work come out of this as a result.
Few Suggestions for another release:
-> Playlist feature ability to:
Add File / Del File
Add Dir / Del Dir
Save / Load
-> Search Feature to search the music directory for a song, if you have thousands (this would be nice)
-> Mute button for volume control
-> Spot (textbox) for message delivery format with tags for a custom message delivery: &Artist, &Song ect. (tell what im listening to)
-> Option to broadcast what im listening to (chan,active,echo,amsg)
-> Refresh button to "refresh" the music directory rather than having to add and deleting it manually each time something has been added like a song
->Information About Selected should include: Artist, Album, Genre & Year.
Cheers,
Buggs
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 12:23 pm
Posted on Sep 2, 2008 12:23 pm
Thanks to all of you for your comments! As soon as I have time, I'll try to resize some things and move them a little bit to make it smaller.
Also, Buggs, by a built in Playlist feature, I guess you mean something so you can create your own playlists which you can load?
Also, Buggs, by a built in Playlist feature, I guess you mean something so you can create your own playlists which you can load?
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 12:37 pm
Posted on Sep 2, 2008 12:37 pm
Correct!, It would be nice to have the ability to create your own play list that you can save for rainy day or load it back when your not tired of the same songs lol
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 12:59 pm
Posted on Sep 2, 2008 12:59 pm
Does this look good?

I changed a few things around a bit with the bottom. I didn't mess with the top bit because I think that's alright, but what I've done is cut down on a hell of a load of space.
Note: I got rid of those 3 link things because.. well.. I thought they're really pointless on an MP3 Player. If you still want them however, just put them back in.
If you want to use this:
Have fun ;)

I changed a few things around a bit with the bottom. I didn't mess with the top bit because I think that's alright, but what I've done is cut down on a hell of a load of space.
Note: I got rid of those 3 link things because.. well.. I thought they're really pointless on an MP3 Player. If you still want them however, just put them back in.
If you want to use this:
| Code: |
dialog MP3PLAYER { title "MP3 Player 1.2 | by Silverwing" size -1 -1 328 227 option dbu box "Play", 1, 3 1 219 74 text "Now playing:", 2, 7 9 50 8 text "Title:", 3, 7 21 20 8 edit "", 4, 31 20 146 10, read autohs text "Position:", 5, 7 31 21 8 scroll "", 6, 31 32 146 8, horizontal edit "", 44, 179 31 33 10, read center text "Bitrate:", 8, 7 42 21 8 edit "", 9, 31 42 50 10, read text "Volume:", 10, 146 44 22 8 edit "", 11, 172 43 40 10, read center scroll "", 12, 146 56 66 9, horizontal check "Repeat", 13, 180 21 34 8 button "<<", 40, 10 58 16 12 button "Pause", 14, 29 58 32 12 button "Stop", 15, 89 58 33 12 button ">>", 41, 125 58 16 12 text "Play mode:", 45, 252 6 50 8 combo 46, 251 17 74 46, drop button "Tell what I'm listening to", 47, 251 31 74 12 button "Close", 48, 293 46 32 12, cancel button "Hide Music", 49, 271 61 54 12 box "Music", 16, 3 78 323 133 list 17, 7 86 206 110, hsbar vsbar size text "Total:", 42, 7 199 21 8 edit "", 43, 31 198 182 10, read center button "Add File", 18, 220 167 45 12 button "Add folder", 19, 220 182 45 12 button "Remove", 20, 270 167 45 12 button "Remove all", 21, 270 182 45 12 text "Play mode:", 22, 219 144 50 8 combo 23, 219 153 102 14, drop text "Information about selected:", 24, 219 87 75 8 text "Title:", 25, 219 99 20 8 edit "", 26, 243 98 79 10, read autohs text "Length:", 27, 219 109 21 8 edit "", 28, 243 109 79 10, read text "Size:", 29, 219 120 22 8 edit "", 30, 243 120 79 10, read text "Bitrate:", 31, 219 131 19 8 edit "", 32, 243 131 79 10, read autohs button "Play", 33, 62 58 25 12 button "Tell what I'm listening to", 37, 217 213 74 12 button "Close", 38, 294 213 32 12, ok } |
Have fun ;)
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 1:01 pm
Posted on Sep 2, 2008 1:01 pm
Oh also: Don't worry about things not having nothing in them, it's previewed in Dialog Editor so nothing will show up anyways.
No ID's were changed at all in that code.
No ID's were changed at all in that code.
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 1:02 pm
Posted on Sep 2, 2008 1:02 pm
Very Nice. I like the new layout as well.
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 1:06 pm
Posted on Sep 2, 2008 1:06 pm
@Neptune:
I like your new layout! I'll make something familiar, just with some little differences.
I like your new layout! I'll make something familiar, just with some little differences.
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 1:09 pm
Posted on Sep 2, 2008 1:09 pm
Hehe
You'll need to redo the /dialog -s parts though because it's a different size :]
You'll need to redo the /dialog -s parts though because it's a different size :]
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 3:10 pm
Posted on Sep 2, 2008 3:10 pm
Here's a screenshot of the new (upcoming) version: http://www.hawkee.com/profile/img/2051/
I'm not yet finished coding it, but new features are Mute checkbox, Playlists, more broadcast options and a new layout.
A search function might come as well. I don't think I'd be able to realise Artist, Genre, Year, Albums things. This is because there are various versions of ID3tags, and I don't know anything about them. This I think will result in a half-working fuction which only displays the right information in SOME cases.
oh and one more thing: I don't think this mp3 player will ever be suitable for playing and managing thousands of mp3's, but you can try if you want :P
I'm not yet finished coding it, but new features are Mute checkbox, Playlists, more broadcast options and a new layout.
A search function might come as well. I don't think I'd be able to realise Artist, Genre, Year, Albums things. This is because there are various versions of ID3tags, and I don't know anything about them. This I think will result in a half-working fuction which only displays the right information in SOME cases.
oh and one more thing: I don't think this mp3 player will ever be suitable for playing and managing thousands of mp3's, but you can try if you want :P
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 3:15 pm
Posted on Sep 2, 2008 3:15 pm
A search function is easy: look up $didwm
For that ID3 tag problem you could just do:
Hope this helps
For that ID3 tag problem you could just do:
| Code: |
| $iif($sound($insong.fname).artist,$v1,None) |
Hope this helps
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 4:05 pm
Posted on Sep 2, 2008 4:05 pm

And that kids is how u make a proper mp3 dialog;p
| Code: |
dialog MP3PLAYER { title "MP3 Player 1.2 | by Silverwing" size -1 -1 230 233 option dbu box "Track Info Options", 39, 2 215 225 16 box "Play Options", 9, 2 73 225 27 box "Mp3 List", 16, 2 102 225 87 box "", 8, 2 52 225 18 box "File Options", 7, 2 193 225 23 box "Play", 1, 2 1 225 55 text "Now playing:", 2, 7 9 33 8 text "Track:", 3, 7 21 16 8 edit "", 4, 30 20 146 10, read autohs text "Position:", 5, 7 31 21 8 scroll "", 6, 30 32 146 8, horizontal text "Volume:", 10, 75 85 22 8 edit "", 11, 170 84 14 10, read center scroll "", 12, 100 84 66 9, horizontal check "Repeat Track", 13, 133 44 42 8 button "<<", 40, 7 43 16 10 button "Pause", 14, 26 43 25 10 button "Stop", 15, 86 43 25 10 button ">>", 41, 113 43 16 10 button "Hide Music", 49, 194 202 30 10 list 17, 7 112 217 71, hsbar vsbar size text "Total Mp3's:", 42, 132 203 31 8 edit "", 43, 165 202 28 10, read center button "Add", 18, 7 202 25 10 button "Add folder", 19, 99 202 30 10 button "Remove", 20, 36 202 25 10 button "Remove all", 21, 66 202 30 10 text "Play mode:", 22, 6 85 27 8 combo 23, 33 84 40 46, drop text "Title:", 25, 6 59 15 8 edit "", 26, 22 58 202 10, read autohs text "Length:", 27, 181 18 21 8 edit "", 28, 199 17 25 10, read text "Size:", 29, 181 28 14 9 edit "", 30, 199 28 25 10, read text "Bitrate:", 31, 181 39 19 8 edit "", 32, 199 39 25 10, read autohs button "Play", 33, 52 43 32 10 link "Search with Google", 34, 10 222 49 8 link "Search for article on Wikipedia", 35, 69 222 76 8 link "Search for clip on YouTube", 36, 153 222 66 8 button "BroadCast", 37, 189 78 35 10 button "Close", 38, 189 88 35 10, ok } |
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 4:25 pm
Posted on Sep 2, 2008 4:25 pm
Rofl i just wanted to fix his dialogs since it seemed to be an issue with everyone ;p.And redoin a dialog is no different then recodig %^&! and posting it in a commnet ;p ask napa >_>.`-.-ยด
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 2, 2008 4:29 pm
Posted on Sep 2, 2008 4:29 pm
Why is there something bad about showin perfection close up? ;p jk the track opions should be moved down a lil rofl but i did it in like few mins so wtf who cares dude prolly ownt use it was just to show him that a dialog should fukin take up yur full screen =\\
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 3, 2008 12:28 pm
Posted on Sep 3, 2008 12:28 pm
@Neptune: I've created the search function without the use of $didwm, I just couldn't get it working :S But this also works fine, may be a little less suitable for a big playlist on a slow computer, but works flawlessly
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 3, 2008 12:57 pm
Posted on Sep 3, 2008 12:57 pm
It works great. 10/10. :)
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 4, 2008 1:01 pm
Posted on Sep 4, 2008 1:01 pm
Good! Thanks for your rating :P
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 4, 2008 2:53 pm
Posted on Sep 4, 2008 2:53 pm
i seem to get
(volume)
says volume is the name of the playlist :s
| Quote: |
[20:51] * &Paul1337noob [10MP3 Player] 1102-the_game-lax_files.mp3 [Bitrate: 11176kbps] [Volume: 11GAME]! |
(volume)
says volume is the name of the playlist :s
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 4, 2008 3:09 pm
Posted on Sep 4, 2008 3:09 pm
hmm, I see.. I've removed the Volume part for the time being. I shall fix it in the next release, when there'll also be an option to edit to broadcast text/options.
Another thing that I'll add are buttons to reorder the files in a playlist.
Thanks for reporting the issue!
Another thing that I'll add are buttons to reorder the files in a playlist.
Thanks for reporting the issue!
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 5, 2008 4:37 pm
Posted on Sep 5, 2008 4:37 pm
Ok, Well first off 2 things
1. I Doesnt store the folder, so there should be an option to "Remember" or Save Settings
2. When I click an mp3 in the list the Play button does not become active.
3. Still no Message delivery with Tags like &Artist, &Song, &Title, &Length
4. When I click the >> button it did not "seek" forward instead it cleared out the title, track time, and the track slider.
Thanks
Jay
1. I Doesnt store the folder, so there should be an option to "Remember" or Save Settings
2. When I click an mp3 in the list the Play button does not become active.
3. Still no Message delivery with Tags like &Artist, &Song, &Title, &Length
4. When I click the >> button it did not "seek" forward instead it cleared out the title, track time, and the track slider.
Thanks
Jay
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 5, 2008 10:14 pm
Posted on Sep 5, 2008 10:14 pm
Works Great, but when i press the buttons to scroll up and down the volume, well its not working, i need to move it with the little bar.
mIRC Snippet:
MP3 Player 2.0
Posted on Sep 7, 2008 6:18 am
Posted on Sep 7, 2008 6:18 am
As for the reported bugs..:
2. When I click an mp3 in the list the Play button does not become active.
This is not a bug. As explained above in the instruction, you have to doubleclick a MP3 to play in this version.
1. I Doesnt store the folder, so there should be an option to "Remember" or Save Settings.
How do you mean that? Because it does remember the latest folder you've added something from in the Add and Add folder dialogs.
4. When I click the >> button it did not "seek" forward instead it cleared out the title, track time, and the track slider.
I'm not able to reprocude this bug (?). It works perfect for me. Maybe there were some weird characters in the filmename?
3. Still no Message delivery with Tags like &Artist, &Song, &Title, &Length
Oops totally forgot about that. It will be added to the next version.
when i press the buttons to scroll up and down the volume, well its not working, i need to move it with the little bar.
I'm aware of this one. But I don't know how to solve it. It actually works (try pressing the volume down button when the volume is 100%. It should become 99%. The problem is that pressing the buttons only increases/decreases the volume by a tiny little bit. If anyone knows how to fix this, please tell me!
2. When I click an mp3 in the list the Play button does not become active.
This is not a bug. As explained above in the instruction, you have to doubleclick a MP3 to play in this version.
1. I Doesnt store the folder, so there should be an option to "Remember" or Save Settings.
How do you mean that? Because it does remember the latest folder you've added something from in the Add and Add folder dialogs.
4. When I click the >> button it did not "seek" forward instead it cleared out the title, track time, and the track slider.
I'm not able to reprocude this bug (?). It works perfect for me. Maybe there were some weird characters in the filmename?
3. Still no Message delivery with Tags like &Artist, &Song, &Title, &Length
Oops totally forgot about that. It will be added to the next version.
when i press the buttons to scroll up and down the volume, well its not working, i need to move it with the little bar.
I'm aware of this one. But I don't know how to solve it. It actually works (try pressing the volume down button when the volume is 100%. It should become 99%. The problem is that pressing the buttons only increases/decreases the volume by a tiny little bit. If anyone knows how to fix this, please tell me!
mIRC Snippet:
MP3 Player 2.0
Posted on Oct 10, 2008 4:22 pm
Posted on Oct 10, 2008 4:22 pm
why make it
when u can make it
so youdont need the show what me listening to but have a switch or somehting in case you dont want to
| Code: |
| alias playmp3 { /did -ar MP3PLAYER 4 $nopath($read(%mp3.playlist,$1)) /did -ar MP3PLAYER 9 $sound($read(%mp3.playlist,$1)).bitrate $+ kbps /did -ar MP3PLAYER 44 $right($duration($calc($sound($read(%mp3.playlist,$1)).length / 1000),3),-3) /did -ar MP3PLAYER 14 Pause /set %mp3.number $1 if ($did(MP3PLAYER,33).enabled == $false) { /did -e MP3PLAYER 6,14,15,37,40,41 ./timerposition 0 1 /mp3position MP3PLAYER 6 /set %mp3.number $1 /set %mp3.play $read(%mp3.playlist,$1) /splay -p %mp3.play /set %mp3.status play } } |
when u can make it
| Code: |
| alias playmp3 { /did -ar MP3PLAYER 4 $nopath($read(%mp3.playlist,$1)) /did -ar MP3PLAYER 9 $sound($read(%mp3.playlist,$1)).bitrate $+ kbps /did -ar MP3PLAYER 44 $right($duration($calc($sound($read(%mp3.playlist,$1)).length / 1000),3),-3) /did -ar MP3PLAYER 14 Pause /set %mp3.number $1 if ($did(MP3PLAYER,33).enabled == $false) { /did -e MP3PLAYER 6,14,15,37,40,41 ./timerposition 0 1 /mp3position MP3PLAYER 6 /set %mp3.number $1 /set %mp3.play $read(%mp3.playlist,$1) /splay -p %mp3.play /set %mp3.status play /describe $active $chr(91) $+ 7,14MP3 Player $+ $chr(93) 11 $+ $did(4) $+ $chr(91) $+ Bitrate: $& 4,14 $+ $did(9) $+ $+ $chr(93) $+ ! } } |
so youdont need the show what me listening to but have a switch or somehting in case you dont want to
mIRC Snippet:
MP3 Player 2.0
Posted on Jan 23, 2009 1:15 pm
Posted on Jan 23, 2009 1:15 pm
It freezes when i load my directory
mIRC Snippet:
MP3 Player 2.0
Posted on May 28, 2009 2:58 pm
Posted on May 28, 2009 2:58 pm
lol same. u just got too many songs
mIRC Snippet:
MP3 Player 2.0
Posted on Jun 1, 2009 7:22 pm
Posted on Jun 1, 2009 7:22 pm
Yeah i do, i have a bout 24 gigs of music haha
mIRC Snippet:
MP3 Player 2.0
Posted on Jun 2, 2009 7:13 pm
Posted on Jun 2, 2009 7:13 pm
mine did fine when i upload 100 songs at once i jsut exit off then re log and boom there all there
mIRC Snippet:
MP3 Player 2.0
Posted on Jul 30, 2009 5:23 pm
Posted on Jul 30, 2009 5:23 pm
how to change the font color of tell what i'm listening to??
pls i need to know because the current font made every one blind..
LOL
pls i need to know because the current font made every one blind..
LOL
mIRC Snippet:
MP3 Player 2.0
Posted on Jul 30, 2009 6:52 pm
Posted on Jul 30, 2009 6:52 pm
nvm i have found it..
it works btw tho ;D
it works btw tho ;D
mIRC Snippet:
MP3 Player 2.0
Posted on Aug 1, 2009 10:21 pm
Posted on Aug 1, 2009 10:21 pm
This doesn't seem to work if your mp3s are on a different drive...it loads them into the box but doesn't play them? I'm getting this issue on Vista.
Can not Unmute either.
Can not Unmute either.
mIRC Snippet:
MP3 Player 2.0
Posted on Aug 21, 2009 12:39 pm
Posted on Aug 21, 2009 12:39 pm
Hmm when trying to add my music folder, MIRC locked up, either that or it's still processing..although it's been 10min now.











