mIRC Homepage
Posted By: Lacutis help on displaying mp3 size - 04/02/03 09:07 AM
i'm redoing my mIRC mp3 script and I can not seem to get it to display the mp3 size here is the "play" script
alias mp3play { /splay $did(mp3,1).seltext
set %mp3file $did(mp3,1).seltext
/amsg %bracketcolor $+ %bracket1 $+  $+ %txtcl $+ - $+ mp3 $+ - $+  $+ %bracketcolor $+ %bracket2 $+  %bracketcolor $+ %bracket1 $+  $+ %txtcl $+ - $+ ! $+ $me $nopath(%mp3file) $+ - $+  $+ %bracketcolor $+ %bracket2 $duration($calc($mp3(%mp3file).length / 1000)+) $bytes($mp3(%mp3file).size,m3).suf)
}

here is the result i get with that

<LS50> -mp3- -!LS50 eminem without me...mp3- 4mins 20secs

i'm trying to get the size to post, i get no errors with that current setup, but no results either. I'm confused.
Posted By: Collective Re: help on displaying mp3 size - 04/02/03 09:41 AM
$bytes($mp3(%mp3file).size,m3).suf)

1. $mp3 isn't a default mIRC alias, so we don't know what value it returns
2. Extra )
3. Are you trying to get the file size in the format "2.54MB"? If so use this:
$bytes($file(%mp3file).size,m3).suf
Posted By: Lacutis Re: help on displaying mp3 size - 04/02/03 09:44 AM
that worked!!! ty laugh
Posted By: krunch Re: help on displaying mp3 size - 04/02/03 10:25 AM
$mp3() is from 5.9
in 6.x its all in $sound()
© mIRC Discussion Forums