mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: splay #100181 10/10/04 07:51 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
do you know how to $calc the length of a file ? the path to the file is set in a %var ..

$calc($sound(%mp3file).length / 1000))

return: 210.176

and it should return: 3.30 .. sorry i ask so much, but the only way to learn wink



if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: splay #100182 10/10/04 07:59 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
[color:red]$gmt([/color]$calc($sound(%mp3file).length / 1000)[color:red],n.ss)[/color]


New username: hixxy
Re: splay #100183 10/10/04 08:04 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
thnx!! i must ask, where have you lernt all this ? the mirc.hlp only cover like 2% of everything..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: splay #100184 10/10/04 08:25 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I learnt a lot from mIRC.hlp, but I learnt the most by reading/asking questions on this forum.

mIRC.hlp has almost everything, it just doesn't show you how to use the scripts in useful/relevant examples.

For example, it tells you what $gmt does, but it doesn't tell you what it could be used to make.


New username: hixxy
Re: splay #100185 10/10/04 08:47 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
size is one i dont understand..

$file(mirc.exe).size

return the size in bytes yes.. but if i do a $calc on that..

$calc($file(mirc.exe).size / 1000)

then i get allot of numbers.. wink but how should somone like me understand how to get the value set in as an example meg ? and thats why i say mirc.hlp only cover maybe 2% of everything.. cos no one could use the commands as they are explained, or atlest i cant. and many with me, it should include a working snippet or somthing.. cos u cant find it on the net.. :tongue: i have been looking for just that.. the $calc thingie


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: splay #100186 10/10/04 08:53 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
mIRC.hlp does have most things you want, you just have to look for them, eg, in your example: $bytes() is what you're after: $bytes($file($mircexe)).suf


New username: hixxy
Page 2 of 2 1 2