Project

General

Profile

Menubar » History » Version 21

Per Amundsen, 06/28/2016 12:25 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 9 Per Amundsen
*/menubar [on|off]*
4 1 Per Amundsen
5 4 Per Amundsen
Enables or disables Menubar. 
6
7
[[$menubar]] can be used to determine it's state.
8 1 Per Amundsen
9 5 Per Amundsen
If no parameter is defined, prints current Menubar visibility status.
10 1 Per Amundsen
11 9 Per Amundsen
*Parameters*
12
13
[on] - Enables Menubar.
14
[off] - Disables Menubar.
15
16 18 Per Amundsen
-----------------------------------------------------------------------------
17
18 12 Per Amundsen
_Added in 1.9.7_
19
20 20 Per Amundsen
*/menubar [-adrishtio] [N] <N|name> <@popup> [text]*
21 9 Per Amundsen
22 14 Per Amundsen
Adds or removes custom menu items to the Menubar.
23 9 Per Amundsen
24 10 Per Amundsen
_AdiIRC only_
25 9 Per Amundsen
26 6 Per Amundsen
*Switches*
27
28 1 Per Amundsen
-a - Add a new menu.
29 20 Per Amundsen
-d - Delete item named <name> or the Nth item.
30 21 Per Amundsen
-r - Resets all menus to default.
31 16 Per Amundsen
-i - Insert a menu at position [N].
32 19 Per Amundsen
-s - Show a hidden menu.
33 16 Per Amundsen
-h - Hide a menu.
34
-t - Change the text of a menu.
35
-o - Change the @popup menu associated with the menu.
36 1 Per Amundsen
37 6 Per Amundsen
*Parameters*
38
39 9 Per Amundsen
<N> - Position to insert or delete at when using -i/-d.
40 14 Per Amundsen
<N|name> - Name of a menu item to add/delete/modify or the Nth position to insert at when -i is used.
41
<@popup> - The @popup menu to associate with the menu.
42 3 Per Amundsen
43
*Example*
44 1 Per Amundsen
45 3 Per Amundsen
<pre>
46 14 Per Amundsen
; Setup a custom menu for the 'mymenu' menu.
47 9 Per Amundsen
menu @mymenu {
48 8 Per Amundsen
  Hello World:echo -ag Hello world
49 3 Per Amundsen
  Menu name:echo -ag Menu name is $menu
50
}
51
52 14 Per Amundsen
; Adda a new menu named 'mymenu' with the text 'Top Menu Test'.
53 9 Per Amundsen
/menubar -a mymenu @mymenu Top Menu Test
54 7 Per Amundsen
55 14 Per Amundsen
; Changes the text of the menu named 'mymenu' to 'Top Menu Test2'.
56 7 Per Amundsen
/menubar -t mymenu Top Menu Test2
57 3 Per Amundsen
58 14 Per Amundsen
; Delete the menu named 'mymenu'.
59 3 Per Amundsen
/menubar -d mymenu
60 1 Per Amundsen
</pre>