5.0

Table Of Contents
Creating a Macro
173
This macro allows you to press F4 to navigate to the WIRES.ALL queue rather than completing
the longer process—typing Alt+G+D to open the Destination dialog box, then typing
WIRES.ALL
, and pressing Enter—to do the same thing. Each segment of the sample macro
definition are explained in this table:
Toolbar Macros
Toolbar macros use only the Action section of the macro definition. The Action is entered in the
Customize Toolbar Button dialog box, in the Macro section. For instance:
<Action>;<Comment>
{alt gd} wires.all{enter};Go to wires.all
Characters Available for Macros
You can use alphabetic and numeric keys, and most punctuation marks in a macro. However,
some punctuation marks are reserved for specific functions within a macro. For instance,
because the open and close braces ({ }) and the tilde ( ~ ) are characters that have special
meanings, you cannot use them as plain text in a macro. You can use the at symbol (@) in the
action of the macro—to the right of the separator—but not as plain text on the left-side of the
separator, where it indicates the start of a new macro definition.
n
Do not use the semicolon character in a macro. If you include a semicolon ( ; ) in a description
line, everything following that character is considered a comment by the system and is ignored.
Macro Segment Function
@{f4} The key indicator begins the macro definition line with the at symbol
(@). Then, {f4} indicates the macro is invoked when a user presses and
releases the key(s) defined within the braces—in this case, the F4 key.
Braces ({ }) are used to group letters together as one key or combination
of keys.
~ The separator is the tilde character (~), and it divides the key indicator
you are defining from the action the macro is to perform.
{alt gd}wires.all{enter} The action includes a series of keystroke combinations. In the example,
{alt gd} presses the Alt key, then types
gd
for the Go To, Destination
menu options, and releases the Alt key. That part of the action opens the
Destination dialog box. Then,
wires.all
is typed in the text field of the
dialog box, and {enter} presses the Enter key and releases it.
;Go to wires.all The optional comment begins with the semicolon (;) and provides a
description of what the macro does.