MapButton command: Difference between revisions
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Lets you assign a command to a Client button without having to ed...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{| | {| | ||
|width=" | |width="125px"| '''Action:''' | ||
|width=" | |width="775px"| | ||
<span class="f_Para">Lets you [[ | <span class="f_Para">Lets you [[Reconfiguring GUI buttons and hot keys|assign a command to a Client button]] without having to edit a mapping file (</span><span class="term">ui.xml</span><span class="f_Para"> or </span><span class="term">uimore.xml</span><span class="f_Para">) and to restart the Client. </span> | ||
'''Syntax:''' | '''Syntax:''' | ||
Line 19: | Line 19: | ||
*''buttonName'' is one of: | *''buttonName'' is one of: | ||
**''button0, button1, ... button14'', the names of the [[ | **''button0, button1, ... button14'', the names of the [[Button Bar|main button bar]] buttons </span> | ||
**''extraButton0, extraButton1, ... extraButton14'', the names of the [[ | **''extraButton0, extraButton1, ... extraButton14'', the names of the [[Button Bar#Launching a second button bar|extra button bar]] buttons </span> | ||
*''command'' is either: | *''command'' is either: | ||
**<span class="f_ListBul2">A [[ | **<span class="f_ListBul2">A [[Client Command Reference|Client command]] </span> | ||
**<span class="f_ListBul1">The </span><span class="f_Monospace">separator</span><span class="f_ListBul1"> keyword </span><span class="f_ListBul2">(case not important), which converts the </span>''buttonName'' button to a visual [[ | **<span class="f_ListBul1">The </span><span class="f_Monospace">separator</span><span class="f_ListBul1"> keyword </span><span class="f_ListBul2">(case not important), which converts the </span>''buttonName'' button to a visual [[Introducing the configurable components#Named buttons and separators|separator button]] | ||
'''Examples:''' | '''Examples:''' |
Latest revision as of 23:00, 3 February 2023
Action: |
Lets you assign a command to a Client button without having to edit a mapping file (ui.xml or uimore.xml) and to restart the Client. Syntax: mapButton [buttonModifier-]buttonName command Where (case not important):
buttonModifier is optional, and its default is no modifier (command runs when you click the button).
Examples: mapButton button0 viewtext After you execute the command, the new mapping is reflected immediately in the button bar to which it applies. The new mapping does not appear in the mapping file. The new mapping does not survive a Client restart. The command to remove a button mapping is clearButton. The command to map a keyboard shortcut is mapKey. |
Client menu: | -- |
Introduced: | Build 56 |