mIRC Home    About    Download    Register    News    Help

Print Thread
#111623 17/02/05 03:41 PM
Joined: Feb 2005
Posts: 3
K
Khaloo Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Feb 2005
Posts: 3
Would sumone be kind enough to fix this, so it will work and thanx!! ---> on *:join:#:msg $nick $!read($mircdirtxt\oj.txt)

The channel name WILL be entered later!! :tongue:

#111624 17/02/05 04:14 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
on !+1:JOIN:#:{
/msg $chan $read join.txt
}

This is what I use.
The txt files have to be in the mirc directory with this.
if you have txt flies elswhere put the adres infront of the join.txt

#111625 17/02/05 04:28 PM
Joined: Feb 2005
Posts: 3
K
Khaloo Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Feb 2005
Posts: 3
Perfect Bullseye...Thanx a ton!! grin

#111626 17/02/05 09:04 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
Would sumone be kind enough to fix this, so it will work and thanx!! ---> on *:join:#:msg $nick $!read($mircdirtxt\oj.txt)


Your coding was perfectly fine, except for the !, just take that out.

#111627 17/02/05 10:01 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
since i think ! makes it wait to assign a value until its actually doing the code which is often ideal for timers but holds no purpose here
i think


The Kodokan will move you, one way or another.
#111628 17/02/05 10:05 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
! means that the identifier isn't evaluated, eg: //echo -a $time $!time $!!time

The reason it's often used in timers is so that the identifier is re-evaluated every time the timer fires.

Check the difference:

Code:
//timertest -m 10 500 echo -a $time


Code:
//timertest -m 10 500 echo -a $[color:red]![/color]time


New username: hixxy

Link Copied to Clipboard