mIRC Home    About    Download    Register    News    Help

Print Thread
#48102 08/09/03 08:16 PM
Joined: Apr 2003
Posts: 7
L
La5eR Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Apr 2003
Posts: 7
is there anything that i can do to make up for the removal of the $length variable. the stuff i was usin was $length($inmp3.pos) and i know $inmp3 was replaced by $insong. I was wondering if there was a short way of doing this instead of having to write an alias to convert the Milliseconds back into HH:NN:SS.

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
$sound($+(",$inmp3.fname,")).length


new username: tidy_trax
Joined: Apr 2003
Posts: 7
L
La5eR Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Apr 2003
Posts: 7
that didnt work im tryin to update the the sound in a dialog like
" did -ra soundmenu 25 $length($insong.pos) $+ / $+ $length($insong.length) "

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
There was no $length identifier in mirc, it could be you had a custom identifier like this one:
Code:
alias length return $asctime($calc($1 /1000),nn:ss)

Joined: Apr 2003
Posts: 7
L
La5eR Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Apr 2003
Posts: 7
well there was a $length modfier in IRC i used 6.01 and it had it why did khaled take it out?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
There was no $length in 6.01. On a clean install of mIRC 6.01 $length(12634) returns $null.

Joined: Apr 2003
Posts: 7
L
La5eR Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Apr 2003
Posts: 7
OK im a ding bat... after lookin like a banshee through my old irc script i had backed up and crud like that i found the damned thing. I forgot i wrote the dang alias but im gonna share it with the WHOLE community ok here goes

alias length {
if ($1 isnum) {
if ($left($1,1) == -) { return - $int($calc($right($1,-1) / 60000)) $+ $chr(58) $+ $tds($remove($duration($calc(((($right($1,-1) / 60000) - $int($calc($right($1,-1) / 60000))) * 60) - 1)),secs,sec)) | halt }
return $int($calc($1 / 60000)) $+ $chr(58) $+ $tds($remove($duration($calc(((($1 / 60000) - $int($calc($1 / 60000))) * 60) - 1)),secs,sec))
} }
alias tds { if ($1 isnum) { return $iif($len($1) == 1,0) $+ $1 } }

Use to your convenience and enjoy. Again im sorry for being such a ding bat.

Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
sure, you wrote it , lol.


Link Copied to Clipboard