Project

General

Profile

Menubar » History » Version 12

Per Amundsen, 09/05/2015 12:22 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
Adds or removes custom menuitems to the Menubar.
21
22 10 Per Amundsen
_AdiIRC only_
23 9 Per Amundsen
24 6 Per Amundsen
*Switches*
25
26 1 Per Amundsen
-a - Add a new topmenu.
27
-d - Delete a topmenu.
28 6 Per Amundsen
-i - Inserts a topmenu at position [N].
29 1 Per Amundsen
-s - Shows a hidden topmenu.
30
-h - Hides a topmenu.
31
-t - Changes the text of a topmenu.
32 9 Per Amundsen
-o - Changes the @popup menu associated with the topmenu.
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
<name> - Name of a topmenu item to add/delete/modify.
38
<@popup> - The @popup menu to associate with the topmenu.
39 3 Per Amundsen
40
*Example*
41 1 Per Amundsen
42 3 Per Amundsen
<pre>
43
; Setup a custom menu for the 'mymenu' topbar.
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
; Adda a new top 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
; Changes the text of the topmenu named 'mymenu' to 'Top Menu Test2'.
53
/menubar -t mymenu Top Menu Test2
54 3 Per Amundsen
55
; Delete the topmenu named 'mymenu'.
56
/menubar -d mymenu
57 1 Per Amundsen
</pre>