Tritan - mp3

By D34th on Jan 16, 2010

Tritan - mp3 once again another code from my upcomeing iRc this is my first mp3 with dialog and i think it works pretty well please leave comments with input on what you think of it

dialog Mp3 {
  title "Tritan - iRc mp3"
  size -1 -1 113 143
  option dbu
  list 1, 0 2 113 104, vsbar
  box "Mp3 Controls", 2, 1 101 111 24
  button "Play", 3, 5 109 32 12
  button "Pause", 4, 38 109 32 12
  button "Stop", 5, 72 109 32 12
  text "Tritan - iRc mp3 By MaddnesS", 6, 0 136 110 17, center
  button "set directory", 7, 0 125 111 10
}
menu * {
  Mp3 { dialog -mdo Mp3 Mp3 }
}
on *:Dialog:Mp3:Sclick:*: {
  if $did = 7 {
    set %dir $sdir="Mp3 Directory"
    write -c mp3.txt
    noop $findfile(%dir,*.mp3,0,write mp3.txt $1-)
    var %num $findfile(%dir, *.mp3,0,did -a mp3 1 $nopath($1-))
  }
  if $did = 3 {
    var %Playing $Remove($did(mp3,1).seltext,.mp3)
    var %song $findfile(%dir,$did(mp3,1).seltext,1)
    set %length $gmt($round($calc($mp3(%song).length / 1000),0),nn:ss)
    splay %song
    amsg 10(15 Tritan - mp3 10) $+ 10(15 $+ $remove($nopath($insong.fname)$1-,.mp3) - %Length $+ 10) 
  }
  if $did = 4 {
    splay pause
  }
  if $did = 5 {
    splay Stop
    .timermp3 off
  }
}

Comments

Sign in to comment.
P34ch   -  Feb 14, 2010

-tacklenoms- Hai Babeh ;D I figured I'd look here for help since the minor flooding on IRC was starting to be a pain and hey, I have the code right here. =D Anyways, Love you..

 Respond  
D34th   -  Jan 17, 2010

lol @ Thewhistler ive been useing it for the last 2 days i assure u it works perfectly if the dialog doesnt come up when clicking the channel popup of "mp3" then type /dialog -m mp3 mp3 then click "Set Directory" then choose the file u have music in ex: my music
and simply click that then ok then click the song in the list and click play its not hard and it does work well i may also update it with my recent addition wich spams to msn personal message although u will need msnsong.dll

 Respond  
Shanker09   -  Jan 17, 2010

Load it in remotes so, ALT + R >> Remotes section >> File new >> Paste it in there >> Press ok >> and then click a Menu it' should apear :]

 Respond  
Shanker09   -  Jan 17, 2010

LOL, MagicRevealer09

 Respond  
MagicRevealer09   -  Jan 17, 2010

How do I use it?

 Respond  
TheWhistler   -  Jan 16, 2010

your Mp3 does not work here is what i get when i click on Mp3

  • /dialog: 'Mp3' no such table
 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.