|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
OP
Hoopy frood
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 ?? thanx in advance its all part of a bigger remote but thats the problem area
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 730
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
oops i thought that was only for actual time, thanx sm
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
OP
Hoopy frood
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.
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 191
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 191 |
Try removing the !
//echo -a $asctime($calc($!inmp3.pos / 1000),n:ss)
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
OP
Hoopy frood
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
Vogon poet
|
Vogon poet
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
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
* /timertest: invalid parameters
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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
|
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
Hoopy frood
|
Hoopy frood
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
|
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
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
thanx to everyone else, but especially you 0:02 0:03 0:04 0:05 0:06
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
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
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
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
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
hmm, that updates as well cheers
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
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!
|
|
|
|
|