Project

General

Profile

Showmenu » History » Version 9

Per Amundsen, 03/26/2021 06:34 PM

1 1 Per Amundsen
_Added in 2.7_
2
3 8 Per Amundsen
*/showmenu [-qnmcsuwad] [window|nick] [nick] [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 8 Per Amundsen
-d - Indicates the [x y] positions are relative to the desktop instead of the active window.
20 1 Per Amundsen
21
*Parameters*
22
23 7 Per Amundsen
[window|nick] - Window or query nick to open the menu for.
24
[nick] - The Nicklist/Query nick to open the menu for.
25 3 Per Amundsen
[x y] - The X and Y position to open the menu at (relative to the associated window).
26 1 Per Amundsen
27
*Example*
28
29
<pre>
30
; Opens the channel menu for the channel #test at x y position 42 42.
31
/showmenu -c #test 42 42
32 8 Per Amundsen
33
; Show the whole Menubar menu when clicking a /toolbar item.
34
/showmenu -ad $toolbar(1).dx $toolbar(1).dy
35 1 Per Amundsen
</pre>