»Mp3 Player«

Platform:  mIRC
Published  Jan 29, 2007
Updated  Jan 29, 2007
Mp3 Player ;o #---------------------------------------#
# Script: Mp3 Player #
# Scripter: Daniel_ #
# web: http://Chat-Core.no-ip.org:8000 #
# IRC: /server Chat-Core.no-ip.org 6667 #
#---------------------------------------#

menu menubar,channel,status {
»Mp3 Player«: dialog -dm mp3 mp3
}
dialog mp3 {
title "mp3 Player"
size -1 -1 74 155
option dbu
list 5, 0 14 74 105, size
button "Play", 1, 0 119 37 12, flat
button "Stop", 2, 37 119 37 12, flat
button "Pause", 3, 0 131 37 12, flat
button "Resume", 4, 37 131 37 12, flat
button "Directory", 6, 0 143 74 12, flat
edit "N/A", 7, 1 2 72 12, flat
}
on *:dialog:mp3:sclick:*:{
if $did = 1 {
set %mp3 $did(mp3,5).seltext
set %Play.song $findfile(%mp3dir,$did(mp3,5).seltext,1)
set %bitr $mp3(%play.song).bitrate
set %length $gmt($round($calc($mp3(%play.song).length / 1000),0),nn:ss)
set %mp3size $bytes($file(%Play.song).size).suf
set %khz $round($calc($mp3(%Play.song).sample / 1000),1))
inc %mpplay
splay %Play.song
did -ra mp3 7 » $+ %mp3 $+ «
msg $active 14,1(0,1 %mp3 14,1/0,1 %Length 14,1/0,1 %bitr 14,1|0,1 %mp3size 14,1|0,1 %khz 14,1(0,1Played %mpplay Songs14,1)

}
if $did = 2 {
splay stop
}
if $did = 3 {
splay pause
}
if $did = 4 {
play resume
}
if $did = 6 {
set %mp3dir $sdir="Mp3 Directory"
set %mp3num $findfile(%mp3dir, *.mp3,0,did -a mp3 5 $nopath($1-))
}
}

Comments

Sign in to comment.
Storm2108   -  Jun 23, 2008
Notice at line 27 you missed out a s for splay and put play instead.
 Respond  
EL   -  Nov 28, 2007
I haev been through every effin mp3 snippet an none work for my script.Odd thing about my script is some how when i downloaded mIRC 6.3 then went back to 6.21(cause i like it better) then back to 6.3 then back to 6.21 I have a fricken hybrid mIRC,so like i have the best of 6.21 an the best of 6.3 god knows how that happened can\'t tell ya,Ok askin what does this have to do with a mp3,well i have been through every mp3 here like i said an i have only been scriptin eh 5 or 6 months an aint about to try my own.so i come across this snippet,and it dint work for me...didnt know why so like so i started to mess with it, and found that \"\"splay %Play.song\"\" will not work for me so changed it to \"run %play.song\" and woot it works like a champ.Any ways sorry for all that info but it works an im a happy effin camper even tho i dislike the songs sent to all channels i changed that.Also im wundering if any one can enlighten me on thsi error message n this has been with all the mp3z i tryed i cant seem to use any other buttons but Play/directory * /play: invalid parameters (line 44, script12)
-* /splay: no such file \'pause\' (line 41, script12).Ok im done an thanks daniel_ great work.`-.-´
 Respond  
DaNzO   -  Nov 13, 2007
lol :D
 Respond  
mountaindew   -  Oct 08, 2007
ugh...
Code
 
 Respond  
tai   -  Oct 08, 2007
Ah, thanks. ^^
 Respond  
mountaindew   -  Oct 08, 2007
for snippets, u can only do
<quote>

no names
 Respond  
tai   -  Oct 08, 2007
[quote:998e6ada37=\"Sick_Puppy\"]
Boring cosmetics.
Looks like poo.
Add some color and save me time. :<

@ Sick_Puppy:
Looks fine, simple, and it includes colour. ;) Although, coloured snippets are not really that great as they do not suit some user\'s tastes in colour. So this snippet shouldn\'t include colour in the first place.

@ Daniel_:
It works fine, but you might want to make an edit and use a list instead of a combo box so that it displays the full song. =)
 Respond  
Sick_Puppy   -  Oct 08, 2007
Boring cosmetics.
Looks like poo.
Add some color and save me time. :<
 Respond  
Calzo   -  Aug 12, 2007
Lmao, Saurabh, you will steal it ;)
 Respond  
Shadow Clash   -  Aug 12, 2007
Your lame Calzo
 Respond  
Calzo   -  Jun 17, 2007
Watch out Saurabh will steal it
 Respond  
wayne   -  May 27, 2007
i dident know you realised this lol ;x ~steals it~ haha :)
 Respond  
Conipto   -  Mar 09, 2007
oops, that\'s line 25
 Respond  
Conipto   -  Mar 09, 2007
What other parameters are needed?
 Respond  
Conipto   -  Mar 09, 2007
Line 27 is where mine goes bad.
 Respond  
DarthReven   -  Jan 29, 2007
Techincally we don\'t even need the variables to be honest we could just use the identifiers to return the data back to the room
 Respond  
Daniel_   -  Jan 29, 2007
nah i dnt use var much
 Respond  
X1qu10n3r   -  Jan 29, 2007
--
set %mp3 $did(mp3,5).seltext
set %Play.song $findfile(%mp3dir,$did(mp3,5).seltext,1)
set %bitr $mp3(%play.song).bitrate
set %length $gmt($round($calc($mp3(%play.song).length / 1000),0),nn:ss)
set %mp3size $bytes($file(%Play.song).size).suf
set %khz $round($calc($mp3(%Play.song).sample / 1000),1))
--
You\'re not using those for anything else but messaging the channel, so use local variables. /var

and the inc %song.play is useles in my opinion.
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.