Mapping a macro to a button or hot key: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__TOC__ <span class="f_Para">Following the same rules as for mapping other Debugger commands, you can map a macro to a button or hot...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
<span class="f_Para">Following the same rules as for [[Reconfiguring GUI buttons and hot keys|mapping other Debugger commands]], you can map a macro to a button or hot key. All such button/key mappings are stored [[ | <span class="f_Para">Following the same rules as for [[Reconfiguring GUI buttons and hot keys|mapping other Debugger commands]], you can map a macro to a button or hot key. All such button/key mappings are stored [[Changing the location of Client work files|by default]] in the </span><var>ui.xml</var><span class="f_Para"> and </span><var>uimore.xml</var><span class="f_Para"> files in the folder that contains the Debugger Client executable file. </span> | ||
<span class="f_Para">To set up a button or hot key to run a macro: </span> | <span class="f_Para">To set up a button or hot key to run a macro: </span> | ||
Line 18: | Line 18: | ||
<span class="f_CodeExampleTable"> <mapping command="macro stepstep" key="Z" keyModifier="ctrl"/> </span></p> | <span class="f_CodeExampleTable"> <mapping command="macro stepstep" key="Z" keyModifier="ctrl"/> </span></p> | ||
3. Save and close the file. | : 3. Save and close the file. | ||
[[Category:Debugger Home]] | [[Category:Debugger Home]] |
Latest revision as of 18:05, 30 December 2022
Following the same rules as for mapping other Debugger commands, you can map a macro to a button or hot key. All such button/key mappings are stored by default in the ui.xml and uimore.xml files in the folder that contains the Debugger Client executable file.
To set up a button or hot key to run a macro:
- Create an XML text file named ui.xml (or uimore.xml) as described in Setting up the ui.xml file, or open the existing ui.xml (or uimore.xml) file.
- Provide a mapping element that associates the macro with a button or hot key.
- The value of the command attribute must have the following form:
"macro name"
- where one or more blanks separate the keyword macro from the name of the macro.
- These are examples:
<mapping command="macro hello" button="button2" key="m" keyModifier="ctrl"/> <mapping command="macro world" button="button2" buttonModifier="alt"/> <mapping command="macro stepstep" key="Z" keyModifier="ctrl"/>
- 3. Save and close the file.