mIRC Home    About    Download    Register    News    Help

Print Thread
#14150 04/03/03 10:39 PM
Joined: Jan 2003
Posts: 44
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 44
I have this script:

Code:
on ^*:SNOTICE:*:{
  window -e @SNotices
  echo 11 @SNotices $1-
  haltdef
} 

to show me the Server Notices in different windows but when I write /quote help it displays this in the Status this error message:
-
[00:26:47] -irc.irc-server.net-
-
* /echo: insufficient parameters (line 82, s12.tms)
-
But also displays the help info in the SNotices... WHY ? confused


Regards, ThE_mASk.
#14151 04/03/03 11:21 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
echo 11 @SNotices [SN] $1-


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#14152 04/03/03 11:39 PM
Joined: Jan 2003
Posts: 44
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 44
10x


Regards, ThE_mASk.
#14153 05/03/03 12:56 PM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
What's the difference between:

aline @Custom TEXT

and

echo @Custom TEXT

Is it that aline lets you change things eg colour of/delete/replace a line etc

Just curious, I'm sure I've asked someone before!! smile


Aubs.
cool

#14154 05/03/03 05:48 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
With /echo, the line is treated like it was coming from the server, ie the switchbar icon is highlighted and if you have logging enabled for that @window, the line gets written in the log file. Neither of these happens if you use /aline.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#14155 06/03/03 07:46 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
In addition to what qwerty has said, there are some cases where you MUST use aline (such as filling a sorted list window) when you definitely do not want the text to wrap at all. For normal messages (even those you are reformatting), echo works best. For lists (like Channels List or Links List), echo works best.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard