mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#22679 06/05/03 12:09 PM
Joined: May 2003
Posts: 14
E
Pikka bird
OP Offline
Pikka bird
E
Joined: May 2003
Posts: 14
the ,n did the trick

#22680 06/05/03 12:10 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Just for the record: The n switch has another advantage that is expecially useful when reading from text files that vary alot - if the line you are reading has a "|" symbol in it will execute whatever text follows the | as a command, if you use the n switch for $read this never happens, so it is best to use the n switch. This doesn't always happen though, which makes me wonder if it is a bug...

#22681 06/05/03 01:12 PM
Joined: May 2003
Posts: 14
E
Pikka bird
OP Offline
Pikka bird
E
Joined: May 2003
Posts: 14
you are exactly right, every line it pastes in has a | in it

#22682 06/05/03 01:56 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Collective: Yes, very true, and thanks much for the input. smile

extractor: Sorry about messing you around with my brain fart. :tongue:

#22683 06/05/03 03:44 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
What doesn't always happen? Do you mean that sometimes the part after the | is executed as a command, even if you specify the n switch? If it's that, do you have any example handy that reproduces it?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#22684 06/05/03 03:47 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
No, I meant that sometimes without the n switch it doesn't execute the command and sometimes it does. Next time I'll word my posts better smile

#22685 06/05/03 10:26 PM
Joined: May 2003
Posts: 14
E
Pikka bird
OP Offline
Pikka bird
E
Joined: May 2003
Posts: 14
nah that cool, u confused me with your broad knowledge of scripting. smile

Page 2 of 2 1 2

Link Copied to Clipboard