The Last Word 3.0 Reference Manual
7-49
<CTRL+ESCAPE>. If you need to make corrections, type <CTRL+CAPS> again to
turn off control mode.
Now, with an empty editor as before, type <CTRL+T>.
Now type <SELECT+EQUALS SIGN>.
Type <CTRL+M>. This means we are about to mark a block.
Now type <CTRL+RIGHT ARROW>. When the macro runs, this will define the
character under the cursor as a marked block. Next, type <CTRL+C>. This is the Cut
Marked Text command, and will send that character to the paste buffer.
Now type <CTRL+RIGHT ARROW> again to move the cursor over the next character.
Next, type <CTRL+P>. This will paste the original character to the right of the
character that followed it. Finally, type <CTRL+LEFT ARROW> to move the cursor
back to its original position.
We'll finish with a message for a neat effect.
Type <CTRL+V> (the "print message" command) then type "Characters Transposed",
and end with <RETURN>.
You'll now need to take the editor out of control mode by typing <CTRL+CAPS>. Save
the macro, then load it as described previously. Now when you press <ESCAPE>,
then <CTRL+T>, then character under the cursor will swapped with the one to its right,
and a message to that effect will be displayed.7.5. MACRO SUMMARY
As you can see, the scope of the macro language is governed only by your
imagination. If you think of something LW doesn't do, chances are it's possible to
construct the feature you want using a macro. And LW is fast enough to make your
macros execute seamlessly, as if they were built-in features of the program. You can
have your address or other frequently used text passages attached to a macro, or
have a macro which merges in sections of text from disk at the cursor position. Check
the supplied macro files to get an idea of the diverse applications of macros.