Contextmenu (Slash Command): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{{SlashCommandArticle|command=contextmenu|options=menu_num|note=Activate a context menu slot.}} | {{SlashCommandArticle|command=contextmenu|options=menu_num|note=Activate a context menu slot.}} | ||
* This command is used to choose a menu option in various [[context menu]]s | * This command is used to choose a menu option in various [[context menu]]s. | ||
* 1 is usually the first menu choice from the top, 2 = second menu choice, etc | * 1 is usually the first slot or menu choice from the top, 2 = second menu choice, etc. | ||
* The /contextmenu command is not useful by itself, but when you use it in a bind or macro and combine it with a command to open a context menu | * The /contextmenu command is not useful by itself, but when you use it in a bind or macro and combine it with a command to open a context menu, it actually works well. Bind strings for context menus process from left to right. | ||
* The command can also select items in sub-menus. | * The command can also select items in sub-menus by chaining multiple /contextmenu commands together. Each /contextmenu command after the first represents an additional level or sub-menu. | ||
* In [[popmenu]]s, the command interprets a <code>divider</code> as a menu | * In [[popmenu]]s, the command interprets a <code>divider</code> as a menu item/slot. | ||
== | ==Examples== | ||
/petoptions$$contextmenu 2 | /petoptions$$contextmenu 2 | ||
/popmenu BAF$$contextmenu | /popmenu BAF$$contextmenu 4$$contextmenu 1 | ||
This last example would select menu item | This last example would select menu item 4 and then sub-menu item 1. | ||
==Also== | ==Also== | ||
* [[ | * [[context menu|Context Menus]] | ||
* [[Binds]] | |||
{{Navbox Context Menu Commands}} | |||
[[Category:Context Menu Commands]] | |||
[[Category:Slash Commands]] |
Latest revision as of 09:51, 1 January 2023
Slash command
/contextmenu menu_num
Activate a context menu slot.
- This command is used to choose a menu option in various context menus.
- 1 is usually the first slot or menu choice from the top, 2 = second menu choice, etc.
- The /contextmenu command is not useful by itself, but when you use it in a bind or macro and combine it with a command to open a context menu, it actually works well. Bind strings for context menus process from left to right.
- The command can also select items in sub-menus by chaining multiple /contextmenu commands together. Each /contextmenu command after the first represents an additional level or sub-menu.
- In popmenus, the command interprets a
divider
as a menu item/slot.
Examples
/petoptions$$contextmenu 2 /popmenu BAF$$contextmenu 4$$contextmenu 1
This last example would select menu item 4 and then sub-menu item 1.
Also