MACRO <"destination">
<Keystrokes>
ENDMACRO
MACRO allows you to send series of keystrokes at once. This is useful if you need to send a large set of keystrokes or a paragraph of text to a window. The keystrokes will be sent exactly as appear within MACRO..ENDMACRO (including spaces). To send a content of a text variable along with the keystrokes, enclose the variable name with "|" (vertical bar). The special keystrokes can also be sent. (See SEND command for more information)
<destination> is the destination window title you want to send the macro to. However, you don't need to include <destination> if you want to send the keystrokes to the current destination window previously set by FOCUS command.
Example
Name = "John"
MACRO "Untitled - Notepad"
Hello |Name|, how are you?
{tab}This is a demonstration of how a large text
can be sent to an application without having to
use multiple "SEND" command.
Thank you, |Name|.
ENDMACRO
See Also