mIRC Home    About    Download    Register    News    Help

Print Thread
#109724 01/02/05 12:40 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
How would you in a easy way make a timer echo what time it is every houer? now i have 1 timer for every houer that start when i open mirc, the problem is that when 24h have pasted, then i have to manualy start the timers again.. any way you can make this with like 1 timer, or do i need to have 1 timer for every houer? :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#109725 01/02/05 01:10 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
timer.onthehour $time($calc($ctime + 3600),HH:00) 0 3600 echo The Time is $!time

and since that well miss the first hour, add this also.

timer.oneoff $time($calc($ctime + 3600),HH:00) 1 0 echo The Time is $!time

#109726 01/02/05 03:58 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
somone that know how to see if a times is active too?

if ($timer(timer_name) == $null) { do this }

dosent work.. nether does $true or $false.. :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#109727 01/02/05 06:20 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
if ($timer(name)) do something if on
if (!$timer(name)) do something if off

#109728 01/02/05 07:44 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
That should work.

timerBLAH 1 1000 echo BLAH BLAH BLAH

if ($timer(BLAH) == $null) { echo BLAH timer is not running }

as said above if ($timer(BLAH)) and if (!$timer(BLAH)) well work also.

PS: its not a true/false condition, its $null or the timer number


Link Copied to Clipboard