Showmenu » History » Version 13
Per Amundsen, 10/24/2022 01:07 PM
1 | 1 | Per Amundsen | _Added in 2.7_ |
---|---|---|---|
2 | |||
3 | 11 | 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 | 12 | Per Amundsen | *Signal* |
31 | |||
32 | 13 | Per Amundsen | When using the <notextile>-i</notextile> switch the [[on SIGNAL]] event "adiirc_to_web_menu" is called, the text version of the menu is passed through [[$1-]] with the format: text,clickid,menustype\r\n |
33 | 12 | Per Amundsen | |
34 | 1 | Per Amundsen | *Example* |
35 | |||
36 | <pre> |
||
37 | ; Opens the channel menu for the channel #test at x y position 42 42. |
||
38 | /showmenu -c #test 42 42 |
||
39 | 8 | Per Amundsen | |
40 | ; Show the whole Menubar menu when clicking a /toolbar item. |
||
41 | /showmenu -ad $toolbar(1).dx $toolbar(1).dy |
||
42 | 1 | Per Amundsen | </pre> |