mIRC Home    About    Download    Register    News    Help

Print Thread
#95478 25/08/04 05:21 AM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
How would I go about echo'ing the time to the active window ever hour. More speciafically, every time at 0 minutes of every hour.

#95479 25/08/04 05:39 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
You'd need to use a timer set at the right time and basically do this (any of the following):

/timerHourTime 0 3600 /echo -s $!asctime($ctime)
/timerHourTime 0 3600 /echo -s $!timestamp
/timerHourTime 0 3600 /echo -s $!time

etc etc etc. In case you didnt know, Im using the ! so it evaluates when the timer fires as opposed to when you set the timer. Does that help?



Those who fail history are doomed to repeat it
#95480 25/08/04 06:13 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
u can try this

Code:
on *:start: { /clocktimer }
alias clocktimer {
  timerclock $asctime($calc($ctime + 3600),hh) $+ :00 1 1 ./clocktimer
  echo $active The time is: $time
}


am i back from the dead? ;p


Need amazing web design for low price: http://www.matrixn3t.net
#95481 25/08/04 08:16 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
thanks


Link Copied to Clipboard