mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
amsg Idle Time: $iif($len($mid($calc($nick($chan,%i).idle / 60),1-,4))) == 1,$mid($calc($nick($chan,%i).idle / 60),1-,4)) $+ 0 mins,$mid($calc($nick($chan,%i).idle / 60),1-,4)) mins)

while (%i <= $nick($chan,0)) {
if ($2 iswm $nick($chan,%i)) {
.set %cpnick $nick($chan,%i)
}
inc %i
}

i came up with that but it says invalid parameters, any ideas frown ?? thanx in advance
its all part of a bigger remote but thats the problem area


new username: tidy_trax
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
u can use $asctime($nick(#,%i).idle,n:ss) instead

Last edited by ScatMan; 29/06/03 06:57 PM.
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
oops blush i thought that was only for actual time, thanx sm smile


new username: tidy_trax
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
do you know why this doesnt work(im posting it here so i dont get flamed for new threads) thanx for any help

/timertest $calc($inmp3.length / 1000) 1 //echo -a $asctime($calc($!inmp3.pos / 1000),n:ss)

it always echo 0:00 it doesnt update. frown


new username: tidy_trax
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
Try removing the !

//echo -a $asctime($calc($!inmp3.pos / 1000),n:ss)

Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i tried that, but it does the same.
the reason i added the ! is because the following alias works:
alias posupdate {
did -z mp3 9 0 $inmp3.length
/timerupdate -m 0 1 did -c mp3 9 $!inmp3.pos
}


new username: tidy_trax
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
Without seeing your timertest alias try this

/timertest $calc($inmp3.length / 1000) 1 echo -a $!asctime($calc($inmp3.pos / 1000),n:ss)

Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
* /timertest: invalid parameters frown


new username: tidy_trax
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/timertest 0 1 /echo $asctime($calc($inmp3.pos / 1000),n:ss)

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
You have to take $timezone and $daylight offsets into consideration when using $asctime for a duration.

var %i = 1
echo -a $asctime($calc($timezone + $daylight + %i),n:ss)
echos 0:01

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
//timertest $calc($inmp3.length / 1000) 1 //echo -a $!asctime($calc($inmp3.pos / 1000),n:ss)



Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
$asctime($calc($timezone + $daylight + $inmp3.pos / 1000),n:ss)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/timertest 0 1 //echo $asctime($calc($timezone + $daylight + $inmp3.pos / 1000),n:ss)

Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thanx to everyone else, but especially you grin
0:02
0:03
0:04
0:05
0:06


new username: tidy_trax
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Nice that you live in the UK and your $timezone == 0 and $daylight == 0... just wait, you'll see.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
hmm?


new username: tidy_trax
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
Why goto to all the trouble of working out that when $gmt($calc($inmp3.pos / 1000),n:ss) would return the exact same thing with less effort?


- Jason
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
hmm, that updates as well shocked cheers grin


new username: tidy_trax
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Ooh, nice find.
* Raccoon tucks that away under his hat.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard