Mp3 V1.0

By `Kazuma on Oct 26, 2005

Just a simple Mp3. I'll be making it with a Dialog later on.

menu channel,menubar,status { 
  .Mp3:{ set %mp3files %MP3directory $+ *.*
    set %mp3.file $$sfile(%MP3Dir,Choose What File To Play)
    splay -p %mp3.file | msg $active 4,1.::: 14,1Mp3 Player4:14,1 $remove($nopath($insong.fname),.mp3,.wma,.mpeg,.wmv 4,1:14,1 $gmt($calc($insong.length / 1000),nn:ss) 4,1:::.
    alias Dir { .set %MP3dir $sdir(C:\,Choose Directory) }
    menu status,channel,menubar {
      .Control Mp3 Dir:Dir set %MP3dir $sdir(C:\,Choose Dir)
    }
  }
}

Comments

Sign in to comment.
Anti   -  Aug 12, 2007

rofl no i got no sound why bother ill only test if i see some uhh... what you ma call it dialog.. hehe

 Respond  
Ghost-lit Warder   -  Aug 12, 2007

Anti, did you try the one I posted as a comment?

 Respond  
Anti   -  Aug 12, 2007

Why post it if it doesnt even work.. sheesh

 Respond  
Ghost-lit Warder   -  Aug 12, 2007

*Status No such Nick/Channel

 Respond  
Ghost-lit Warder   -  Aug 12, 2007

I don\'t even know why there is even a status option in the first place, you would just get \'You are not on a channel\'.

 Respond  
Ghost-lit Warder   -  Aug 12, 2007

Well, if you used that it would also be in the status window and nicklist. It would make no sense to be in the nicklist and the message cannot be displayed in the status window.

 Respond  
napa182   -  Aug 12, 2007

you could use instead of menu channel,menubar,status {
try menu * {

 Respond  
Ghost-lit Warder   -  Aug 12, 2007

Try:
menu channel,menubar,status {
.Mp3:{ set %mp3files %MP3directory $+ .
set %mp3.file $$sfile(%MP3Dir,Choose What File To Play)
splay -p %mp3.file | msg $active 4,1.::: 14,1Mp3 Player4:14,1 $remove($nopath($insong.fname),.mp3,.wma,.mpeg,.wmv) 4,1:14,1 $gmt($calc($insong.length / 1000),nn:ss) 4,1:::.
}
}

menu status,channel,menubar {
.Control Mp3 Dir:Dir
}
alias Dir { .set %MP3dir $sdir(C:\,Choose Directory) }

  • Made the second menu and alias on seperate lines and fixed the \'$remove Invalid format\' error.
 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.