Top

»Mp3 Player«


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  5.5 (of 2 scores)
Date Added  Jan 29, 2007
Last Updated  Jan 29, 2007
Tags  mp3  player 

Introduction

Mp3 Player ;o

Grab the Code

#---------------------------------------#
# 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

  (18)  RSS
X1qu10n3r
Comments: 23
 
mIRC Snippet:  »Mp3 Player«
Posted on Jan 29, 2007 1:25 pm
--
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.
Daniel_
Comments: 9
 
mIRC Snippet:  »Mp3 Player«
Posted on Jan 29, 2007 1:27 pm
nah i dnt use var much
DarthReven
Comments: 468
 
mIRC Snippet:  »Mp3 Player«
Posted on Jan 29, 2007 3:02 pm
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
Conipto
Comments: 7
 
mIRC Snippet:  »Mp3 Player«
Posted on Mar 9, 2007 9:17 pm
Line 27 is where mine goes bad.
Conipto
Comments: 7
 
mIRC Snippet:  »Mp3 Player«
Posted on Mar 9, 2007 9:17 pm
What other parameters are needed?
Conipto
Comments: 7
 
mIRC Snippet:  »Mp3 Player«
Posted on Mar 9, 2007 9:17 pm
oops, that's line 25
wayne
Comments: 3
 
mIRC Snippet:  »Mp3 Player«
Posted on May 27, 2007 12:06 pm
i dident know you realised this lol ;x ~steals it~ haha :)
Calzo
Comments: 13
 
mIRC Snippet:  »Mp3 Player«
Posted on Jun 17, 2007 2:15 am
Watch out Saurabh will steal it
Shadow Clash
Comments: 40
 
mIRC Snippet:  »Mp3 Player«
Posted on Aug 12, 2007 12:39 am
Your lame Calzo
Calzo
Comments: 13
 
mIRC Snippet:  »Mp3 Player«
Posted on Aug 12, 2007 1:03 am
Lmao, Saurabh, you will steal it ;)
Sick_Puppy
Comments: 38
 
mIRC Snippet:  »Mp3 Player«
Posted on Oct 8, 2007 3:35 pm
Boring cosmetics.
Looks like poo.
Add some color and save me time. :<
tai
Comments: 18
 
mIRC Snippet:  »Mp3 Player«
Posted on Oct 8, 2007 3:40 pm
[quote:18852d09d4="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. =)
mountaindew
Comments: 1,826
 
mIRC Snippet:  »Mp3 Player«
Posted on Oct 8, 2007 3:44 pm
for snippets, u can only do
Quote:
Quote:
<quote>

no names
tai
Comments: 18
 
mIRC Snippet:  »Mp3 Player«
Posted on Oct 8, 2007 3:45 pm
Ah, thanks. ^^
mountaindew
Comments: 1,826
 
mIRC Snippet:  »Mp3 Player«
Posted on Oct 8, 2007 3:45 pm
ugh...
Code:
[quote] <quote> [/quote]
DaNzO
Comments: 72
 
mIRC Snippet:  »Mp3 Player«
Posted on Nov 13, 2007 4:54 pm
lol :D
EL
Comments: 1,125
 
mIRC Snippet:  »Mp3 Player«
Posted on Nov 28, 2007 7:30 pm
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.`-.-´
Storm2108
Comments: 44
 
mIRC Snippet:  »Mp3 Player«
Posted on Jun 23, 2008 3:00 am
Notice at line 27 you missed out a s for splay and put play instead.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom