Page 1 of 1

Assign a macro to a key

Posted: Tue Jun 16, 2009 12:11 am
by peterv
I've looked in the help files and can't find anything about how to assign a macro to a key combination like ctrl + T. Anyone know how to do it and would care to share the steps?

Posted: Tue Jun 16, 2009 12:50 am
by Bob Hansen
See my second paragraph before doing these steps.

1. Design and save the macro file.
2. Configure/Preferences/Keyboard
3. Under Categories, select Macros
4. Uncer Commands, select the macro for the hot key
5. Put cursor in the field under Categories for "Press new shortcut key"
6. Press the desired hot key combo (ie: CTL-ALT-Y)
7. If combo is already assigned you will get a message with details. If no message, continue...
8. Click on Assign
9. Click on Apply and OK to close the window.

---------------------------
When making configuration changes I find it best to follow these steps, especially for any changes in Classes:

1. Close all other copies of TextPad.
2. Close all open documents, INCLUDING THE DEFAULT NEW BLANK DOCUMENT.
3. Make the changes you want: Configure/Preferences/.....change as needed.
4. Apply and OK your way out the configurations.
5. Close TextPad.
6. Open TextPad again, and your changes should be good.

Posted: Tue Jun 16, 2009 12:58 am
by ak47wong
Hi peterv, it is in the help file, but it's not very clear.

You first need to make sure the macro appears in the Macro menu. If not:
  1. Click Configure->Preferences.
  2. Click Macros.
  3. Under Macros available, click the macro you want to add to the menu and then click Add >>.
Once the macro appears in the Macro menu, follow these steps to assign it to a keystroke:
  1. Click Configure->Preferences.
  2. Click Keyboard.
  3. Under Categories, click Macros.
  4. Under Commands, click the macro you want to assign the keystroke to.
  5. Click the box under Press new shortcut key.
  6. Press your desired key combination, e.g. Ctrl+T.
  7. Click Assign.
Andrew