mIRC Home    About    Download    Register    News    Help

Print Thread
#1235 12/12/02 03:22 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ok i have a timer set to go off at 12:00am
on 1:connect: /timerbed 00:00 1 1 /amsg [Auto-Msg] It's Midnight!
i have tried for months to figure out a way to not have to set it on connect ? is it possible to start it say on startup on appactive ? or something so it just keeps going off always at 12:00am ? thx in advance confused

#1236 12/12/02 03:56 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Take a look at the On START event. smile


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1237 12/12/02 04:01 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
if i set it to on start is it Always going to go off at midnite as long as mirc is running ? i dont want to keep setting the timer i want it to go off everyday at midnite as long as mirc is running ? if i rebbot windows is when the mirc application closes ?

#1238 12/12/02 04:07 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
this is something that may help you

ON *:CONNECT: { .timertm 0 60 /time }

alias time {
if ( $time == 24:00:00 ) { echo -a 1 »14»15» 2 It Is Now2:12 [2 $+ $asctime(hh:nn TT) $+ 12] }
else { halt }
}




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#1239 12/12/02 04:13 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
It will say it only once, however you can do this:
Code:
On *:START: go.off
alias -l go.off {
  .timer 14:00 1 1 commandfortimer
  .timer 1 1 go.off
}


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1240 12/12/02 04:46 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Actually, I'm sorry, I'm an idiot. Don't use that! That will loop infinitely.

Try this instead:
Code:
On *:START: set.timer
alias -l set.timer { .timer 14:00 1 1 go.off }
alias -l go.off { commandhere | .timer 1 1 set.timer }


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1241 12/12/02 01:35 PM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
This came from the help file ( /help /timers)

  • /timer9 14:30 1 1 /say It's now 2:30pm
  • This will wait until 2:30pm and will then announce the time once and stop.

I would have thought if you merged that with this:
  • /timer1 0 20 /ame is AWAY!
  • Timer1 will repeat an all channel action every 20 seconds until you stop the timer.

and get:
  • /timerBED 00:00 0 1 /amsg [Auto-Msg] It's Midnight!

then it *should* repeat at midnight, every midnight until you stop it


hope this sort of helps!!


Aubs.
cool

#1242 12/12/02 02:32 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
I believe your solution will take the user into an infinite repetition of the message starting at the set time.

My solution would be the same to what Dana already gave out.

afaik the "repetition" parameter is linked to the <interval> and not to the [time] parameter.

gemeau50

#1243 12/12/02 02:39 PM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
/me holds his hands up and cowers!!! yep, wasn't thinking!!!!

you are right ;o)


Aubs.
cool

#1244 12/12/02 04:43 PM
Joined: Dec 2002
Posts: 8
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2002
Posts: 8
ok there are 86400 seconds in 1 day or there abouts
if you tell the timer to repeat every 86400 seconds and start the timer at 12am then it should in theory repeat at 12am the next day.

/timerbed 00:00 0 86400 /amsg [Auto-Msg] It's Midnight!

i did not test it ...but it should be accurate tell yer next windows reboot (which will prob not be too long <GRIN> )

#1245 19/12/02 03:44 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
that works great thx the only thing for any one else who trys is it doesnt actually display the first day it just makes it run like you want it but it goes off every day at midnite like a charm so i just added in another to trigger once on the first day thx again i have been fighting with that timer for months smile


Link Copied to Clipboard