Mapping a macro to a button or hot key: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 18: Line 18:
<span class="f_CodeExampleTable">  &lt;mapping command=&quot;macro stepstep&quot; key=&quot;Z&quot; keyModifier=&quot;ctrl&quot;/&gt; </span></p>
<span class="f_CodeExampleTable">  &lt;mapping command=&quot;macro stepstep&quot; key=&quot;Z&quot; keyModifier=&quot;ctrl&quot;/&gt; </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:

  1. 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.
  2. 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.