mIRC Home    About    Download    Register    News    Help

Print Thread
#9599 04/02/03 09:07 AM
Joined: Feb 2003
Posts: 2
L
Lacutis Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Feb 2003
Posts: 2
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.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$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

Joined: Feb 2003
Posts: 2
L
Lacutis Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Feb 2003
Posts: 2
that worked!!! ty laugh

Joined: Dec 2002
Posts: 94
K
Babel fish
Offline
Babel fish
K
Joined: Dec 2002
Posts: 94
$mp3() is from 5.9
in 6.x its all in $sound()


Lets get dirty

Link Copied to Clipboard