Showmenu » History » Version 14
Per Amundsen, 02/16/2023 03:13 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 | 14 | Per Amundsen | table(ktable). |
12 | |*Switch*|*Description*| |
||
13 | | -q | Show the Query menu. | |
||
14 | | -n | Show the Nicklist menu. | |
||
15 | | -m | Shows the [[Menubar_Control<notextile>|</notextile>Menubar]] menu. | |
||
16 | | -c | Shows the Channel menu. | |
||
17 | | -s | Shows the Status menu. | |
||
18 | | -u | Shows the specified @custom menu. | |
||
19 | | -w | Shows the Window menu. | |
||
20 | | -a | Shows the [[Menubar_Control<notextile>|</notextile>Menubar]] as a context menu. (while the context menu is open, the regular Menubar will be empty) | |
||
21 | | -d | Indicates the [x y] positions are relative to the desktop instead of the active window. | |
||
22 | | -i | Generates a text version of the menu which is sent through the [[on SIGNAL]] event. | |
||
23 | | -l | Clicks the [N]th menu item. | |
||
24 | 10 | Per Amundsen | |
25 | *Parameters* |
||
26 | 1 | Per Amundsen | |
27 | 14 | Per Amundsen | table(ktable). |
28 | |*Parameter*|*Description*| |
||
29 | | [window<notextile>|</notextile>nick] | Window or query nick to open the menu for. | |
||
30 | | [nick] | The Nicklist/Query nick to open the menu for. | |
||
31 | | [N] | The Nth menu item to click, used with -l. | |
||
32 | | [x y] | The X and Y position to open the menu at (relative to the associated window). | |
||
33 | 1 | Per Amundsen | |
34 | 12 | Per Amundsen | *Signal* |
35 | |||
36 | 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 |
37 | 12 | Per Amundsen | |
38 | 1 | Per Amundsen | *Example* |
39 | |||
40 | <pre> |
||
41 | ; Opens the channel menu for the channel #test at x y position 42 42. |
||
42 | /showmenu -c #test 42 42 |
||
43 | 8 | Per Amundsen | |
44 | ; Show the whole Menubar menu when clicking a /toolbar item. |
||
45 | /showmenu -ad $toolbar(1).dx $toolbar(1).dy |
||
46 | 1 | Per Amundsen | </pre> |