mIRC Home    About    Download    Register    News    Help

Print Thread
#96504 02/09/04 04:07 AM
Joined: Aug 2004
Posts: 6
A
ahdik Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2004
Posts: 6
Would someone be kind enough to adjust the following so it will take a random line from the 'do.txt'...!?!

Joke Timer
.On:timer1 0 210 msg #Ahdik $read($mircdirtxt\do.txt)
.Off:timer1 Off

Much appreciated!! grin

#96505 02/09/04 04:44 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
timer1 0 210 analiasname
analiasname {
msg #Ahdik $read($mircdirtxt\do.txt)
}

#96506 02/09/04 07:48 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
If you're interested in knowing the problem with your code, it's that your $read is evaluating as soon as the popup is clicked, i.e. the timer will send the same message to the channel every 210 seconds. If you want to prevent this you need to escape your $read identifier and this can be done by placing an exclamation mark behind the identifier name: .On:timer1 0 210 msg #Ahdik $!read($mircdirtxt\do.txt)

#96507 02/09/04 01:30 PM
Joined: Aug 2004
Posts: 6
A
ahdik Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2004
Posts: 6
Exactly what I was looking for...Thanx!! grin


Link Copied to Clipboard