Difference between revisions of "Echo"

From Scriptwiki
Jump to: navigation, search
m (added .echo -q)
m (Added @window to param list. Linked see also to aline)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Prints text in the specified window using the specified color.
 
Prints text in the specified window using the specified color.
  /echo [color] [-cdeghiNtsaqlbfnmr] [color name] [#channel|[=]nick] <text>
+
  /echo [color] [-cdeghiNtsaqlbfnmr] [color name] [#channel|[=]nick|@window] <text>
  
 
{| style="width:100%"
 
{| style="width:100%"
Line 46: Line 46:
 
  /echo 0 -g #help.script moo
 
  /echo 0 -g #help.script moo
 
This will print moo to the #help.script channel window in white with preventing it from logging to the log file.
 
This will print moo to the #help.script channel window in white with preventing it from logging to the log file.
 +
/.echo -q hello
 
This will not print anything (because of the "." and -q switch).
 
This will not print anything (because of the "." and -q switch).
/.echo -q hello
 
  
 
== See Also ==
 
== See Also ==
* Take a look on [[How do I customize mIRC's own output|How do I customize mIRC's own output]] by using echo at category [[:Category:Tutorials|Tutorials]].
+
* [[How do I customize mIRC's own output|How do I customize mIRC's own output]] by using echo at category [[:Category:Tutorials|Tutorials]].
* Take a look on [[Custom Windows]] to see how to print text to it.
+
* [[Custom Windows]] to see how to print text to it.
 +
* [[Control_Codes]] for more information about colors.
 +
* [[Aline]] as an alternative to adding lines to custom windows
 +
 
 
[[Category:Commands]]
 
[[Category:Commands]]
* [[Control_Codes]] for more information about colors.
 

Latest revision as of 19:28, 6 October 2008

Prints text in the specified window using the specified color.

/echo [color] [-cdeghiNtsaqlbfnmr] [color name] [#channel|[=]nick|@window] <text>
Switch Meaning
s If a channel/nickname isn't specified, it echoes to the status window.
d If a channel/nickname isn't specified, it echoes to the single message window.
a If a channel/nickname isn't specified, it echoes to the active window.
e Encloses the line in the line spearators.
iN Indents the wrapped line by N characters.
h Forces lines to hard-wrap so resizing the window doesn't change the line.
t Prefixes the line with a timestamp if global time stamping is on or timestamping is on for that window.
q Makes it not display the text if called from an alias using the . prefix.
l Makes it apply the highlight settings to the line that's displayed.
bf Make it apply the beep/flash settings in the window it is echoing to.
n Prevents the echo from hiliting the window switchbar icon.
m Indicates that the line should be treated as a user message, not an event.
g Prevents the line from being logged to the log file.
r Applies the strip settings in the messages dialog.
c Uses the specified color name from the colors dialog.
  • Note that this text is only displayed in your own window and isn't sent to the server.

Example

/echo -a moo

This will print moo to the active window.

/echo -sb moo

This will print moo to the status window and applies the beep setting in the window.

/echo 0 -g #help.script moo

This will print moo to the #help.script channel window in white with preventing it from logging to the log file.

/.echo -q hello

This will not print anything (because of the "." and -q switch).

See Also