Project

General

Profile

Menubar » History » Version 9

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