mIRC Home    About    Download    Register    News    Help

Print Thread
#96861 06/09/04 11:34 AM
Joined: Feb 2004
Posts: 6
Q
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Q
Joined: Feb 2004
Posts: 6
I have seen somewhere the use on the command /timer -o to trigger a certain event the same time every day, but I can't seem to find anything in the help files about how the -o works. Could someone give me some syntax and other little details about how -o works? Thanks

#96862 06/09/04 11:37 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
From the help file:
'If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not.

If you are connected to a server and you start a timer, it defaults to being an online timer, which means that if you disconnect from the server, it will be turned off. You can specify the -o switch to force it to be an offline timer.
'


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#96863 06/09/04 11:41 AM
Joined: Feb 2004
Posts: 6
Q
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Q
Joined: Feb 2004
Posts: 6
That's right, I should have remebered that. Then what if any is the way to get an event to go the same time every day?

#96864 06/09/04 04:33 PM
Joined: Sep 2004
Posts: 18
E
Pikka bird
Offline
Pikka bird
E
Joined: Sep 2004
Posts: 18
timerName 0 59 if ( $!time(HH:nn) == XX:XX ) { COMMANDS }

#96865 06/09/04 04:56 PM
Joined: Feb 2004
Posts: 6
Q
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Q
Joined: Feb 2004
Posts: 6
I already have something simular to that ...

/timerauto 0 300 auto

... and ...

/auto {
if ( $time(H) < 6 ) %auto = 60
elseif ( $time(H) > 6 ) && ( $time(H) < 17 ) && ( $time(ddd) != Sat ) && ( $time(ddd) != Sun ) %auto = 60
else %auto = 30
}

... I just though I saw something one time that all that could be done differently like ...

/.timerauto1 -x 0 0600 %auto = 30

... would trigger a command at 0600 or 6:00 AM everyday no matter what time the timer was started. If there's no such command that's OK. I just thought I saw it one time before.

#96866 07/09/04 06:12 AM
Joined: Feb 2004
Posts: 206
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
timerDaily 05:59 1 60 /MyAlias

alias MyAlias {
<my commands here>
timerDaily 05:59 1 60 /MyAlias
}


(the delay of 60 seconds is so that you don't automatically retrigger when you run the alias - perhaps the more experienced here can advise if this is necessary)

is one option or ...

timerDaily 06:00 0 $calc(60*60*24) /YourCommand

is another option (the $calc is there just to demonstrate the number of seconds in a 24 hour period).

Cheers,

DK


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!

Link Copied to Clipboard