Assign a Macro to a Key

Home Forums Multi-Edit FAQ Assign a Macro to a Key

This topic contains 0 replies, has 8,438 voices, and was last updated by  ReidSweatman 15 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1215

    ReidSweatman
    Participant

    Question
    How do I assign a macro to a key combination?

    Answer
    Go to Tools | Customize… | General from the main menu bar, press the large Keys/Commands… button, pick a location in the Command Mapping dialog where you’d like to position the command (usually the area flagged for user assignments), and click the Insert button. Then fill in the Name: field with whatever name you want to give the mapping, and the Command line: field with module_name^my_macro, where module_name is the name in the macro_file command at the top of the macro source file (note that this module name need not be the filename, although it often is). If the macro takes any command-line-style arguments, put them after the command, with a space separating them from it. Then click on the button with the ellipsis (three dots) to the right of the Primary Key: field, and press the keystroke combination you want to assign. Then just back out of the sequence of dialog boxes by accepting all changes, and your key mapping should be functional.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.