Echo command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__  <div id="printheader"> <br /> <span id="echo-command"></span> = <span class="f_Heading1">echo command</span> = </div> <div id="idcontent"> <div id="innerdiv"...")
 
No edit summary
Line 1: Line 1:
__TOC__
__TOC__

<div id="printheader">
<br />
<span id="echo-command"></span>
= <span class="f_Heading1">echo command</span> =
</div>
<div id="idcontent">
<div id="innerdiv">
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 10px 0;">


{|
{|
|width="50%"| <span class="f_Label">Action:</span>
|width="50%"| '''Action:'''
|width="50%"|
|width="50%"|
<span class="f_Para">Displays a message to the user. </span>
<span class="f_Para">Displays a message to the user. </span>

Revision as of 02:06, 25 May 2022

Action:

Displays a message to the user.

Syntax:

echo message

where message is one of these:

  • A unquoted string that contains the message.
  • A Client &&function. The result of the function execution is displayed as the message.

The message string starts with the first non-blank character after the echo keyword, and it continues as far as the end of the line. For example:

echo Have a nice day! 

The message is normally displayed in a standard Windows informational box (entitled Macro message). If the macro console is open, however, the message is sent to the console instead.

Note: If you are specifying a Client mapping command and your message includes an ampersand character (&), you must XML entity encode the character. For example, to map the command echo &foo, you specify it like this:

 <mapping command="echo &amp;foo" button="button13"/>

Client menu:
Introduced: Build 27