Project

General

Profile

Showmenu » History » Version 10

Per Amundsen, 10/14/2022 02:49 PM

1 1 Per Amundsen
_Added in 2.7_
2
3 10 Per Amundsen
*/showmenu [-qnmcsuwadil] [window|nick] [nick] [N]|[x y]*
4 1 Per Amundsen
5
Shows the specified context-menu type for current active window or [window|nick].
6
7 4 Per Amundsen
By default the menu opens relative to the current active [[Editbox Control|Editbox]].
8 1 Per Amundsen
9
*Switches*
10
11
-q - Show the Query menu.
12
-n - Show the Nicklist menu.
13 9 Per Amundsen
-m - Shows the [[Menubar_Control|Menubar]] menu.
14 1 Per Amundsen
-c - Shows the Channel menu.
15
-s - Shows the Status menu.
16
-u - Shows the specified @custom menu.
17
-w - Shows the Window menu.
18 9 Per Amundsen
-a - Shows the [[Menubar_Control|Menubar]] as a context menu. (while the context menu is open, the regular Menubar will be empty)
19 1 Per Amundsen
-d - Indicates the [x y] positions are relative to the desktop instead of the active window.
20 10 Per Amundsen
-i - Generates a text version of the menu which is sent through the [[on SIGNAL]] event.
21
-l - Clicks the [N]th menu item.
22 1 Per Amundsen
23
*Parameters*
24
25 7 Per Amundsen
[window|nick] - Window or query nick to open the menu for.
26 1 Per Amundsen
[nick] - The Nicklist/Query nick to open the menu for.
27 10 Per Amundsen
[N] - The Nth menu item to click, used with -l.
28 3 Per Amundsen
[x y] - The X and Y position to open the menu at (relative to the associated window).
29 1 Per Amundsen
30
*Example*
31
32
<pre>
33
; Opens the channel menu for the channel #test at x y position 42 42.
34
/showmenu -c #test 42 42
35 8 Per Amundsen
36
; Show the whole Menubar menu when clicking a /toolbar item.
37
/showmenu -ad $toolbar(1).dx $toolbar(1).dy
38 1 Per Amundsen
</pre>