Type Menu Commands

You can tell Nisus Writer Pro what to do just as you would type out a “to do” list for yourself. Anything that Nisus Writer Pro can do by choosing a menu command with the mouse or trackpad can be done in a macro by typing the name of that command.

Create a new macro file

The following instructions work for either a Perl script or a Nisus Writer Pro command language macro.

1. Choose the menu command: Macro > New Macro.

2. Write the instructions of your macro.

3. Choose the menu command: Macro > Save as Macro….

4. In the Save As sheet that appears, notice that the location already points to your Macros folder. You can save the file elsewhere, but it won’t appear on the Macros menu.

5. Choose Nisus Macro or Nisus Perl Macro from the File Format pop-up menu in the sheet and click Save.

Save the current macro file under a different name

1. Press as you choose a particular macro from the Macro menu to open the macro file for editing (rather than running) the macro.

2. Choose the menu command: File > Save As… to give the macro file a new name.

Case sensitivity in Menu Command Dialect macros

You do not need to be precise about using upper or lowercase characters because Nisus Writer Pro’s macros pay no attention to them. If a menu command appears in a submenu, type only the command of the submenu. You can ignore ellipses, but be sure to include any spaces in the command’s name.

A simple “to do” list

The two commands that follow, when put together in sequence as a macro will make UPPERCASE all but the initial letters of every word in a selection no matter what the case of the characters was before.

To Capitalized

To Toggled Case


Previous Chapter
Before Creating a Macro
<<  index  >>
 
Next Chapter
Work with Menu Commands