Project

General

Profile

Menubar » History » Version 16

Per Amundsen, 09/05/2015 01:05 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 12 Per Amundsen
_Added in 1.9.7_
17
18 11 Per Amundsen
*/menubar [-adishtio] [N] <N|name> <@popup> [text]*
19 9 Per Amundsen
20 14 Per Amundsen
Adds or removes custom menu items to the Menubar.
21 9 Per Amundsen
22 10 Per Amundsen
_AdiIRC only_
23 9 Per Amundsen
24 6 Per Amundsen
*Switches*
25
26 14 Per Amundsen
-a - Add a new menu.
27 15 Per Amundsen
-d - Delete item named 'name' or the Nth item.
28 16 Per Amundsen
-i - Insert a menu at position [N].
29
-s - Show a hidden menu.
30
-h - Hide a menu.
31
-t - Change the text of a menu.
32
-o - Change the @popup menu associated with the menu.
33 1 Per Amundsen
34 6 Per Amundsen
*Parameters*
35
36 9 Per Amundsen
<N> - Position to insert or delete at when using -i/-d.
37 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.
38
<@popup> - The @popup menu to associate with the menu.
39 3 Per Amundsen
40
*Example*
41 1 Per Amundsen
42 3 Per Amundsen
<pre>
43 14 Per Amundsen
; Setup a custom menu for the 'mymenu' menu.
44 9 Per Amundsen
menu @mymenu {
45 8 Per Amundsen
  Hello World:echo -ag Hello world
46 3 Per Amundsen
  Menu name:echo -ag Menu name is $menu
47
}
48
49 14 Per Amundsen
; Adda a new menu named 'mymenu' with the text 'Top Menu Test'.
50 9 Per Amundsen
/menubar -a mymenu @mymenu Top Menu Test
51 7 Per Amundsen
52 14 Per Amundsen
; Changes the text of the menu named 'mymenu' to 'Top Menu Test2'.
53 7 Per Amundsen
/menubar -t mymenu Top Menu Test2
54 3 Per Amundsen
55 14 Per Amundsen
; Delete the menu named 'mymenu'.
56 3 Per Amundsen
/menubar -d mymenu
57 1 Per Amundsen
</pre>