Contents

Previous

Next

Last

Editing Command (CMC) Files

The Command Files (CMC) are generally simpler than the script files. When editing a CMC file, the editor looks like this:


The first word (blue) on each line is the name of the command, the rest of the line (red) is the definition of the command. The command name must start in the first column for the highlighting to work correctly. A leading space or spaces will cause the whole line to have the same color, though the command will still work.

Macro Name Length Marker

If you're editing a CMC file in the CM Editor, you'll notice a light gray vertical line about 40 characters from the left margin. The line marks the limit for CMC command names if you want them to be completely visible in the "Insert Command" or "Command Finder" dialogs while you're using the GUI. You can make the names longer if you want to, the line is only there as an indicator, but when you use the Command dialogs, the end of the command name will be cut off at that point. The limit only applies to the name itself. The definition portion can be as long as is necessary to define the command since it's not shown anyway.

Keystroke Recorder

The Keystroke recorder is now available when CMC files are being edited for creating command definitions. To use it, put the cursor where you want the definition to be placed, then right-click somewhere on the Editor Screen and select "Record Definition" from the menu that pops up. It works in the CMC editor the same way it does in the main GUI, press and release the keys in the desired order. When you're done click "Exit" and the keystrokes will be analyzed, the most efficient macro will be generated, and the result will be moved to the CMC editor at the current cursor position.