Project

General

Profile

Menubar » History » Version 8

Per Amundsen, 08/30/2015 04:58 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 6 Per Amundsen
*/menubar [-adisht] [N|on|off|name] [name|text]*
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
11 3 Per Amundsen
*Switches*
12 1 Per Amundsen
13 6 Per Amundsen
(AdiIRC only)
14
-a - Add a new topmenu.
15
-d - Delete a topmenu.
16
-i - Inserts a topmenu at position [N].
17
-s - Shows a hidden topmenu.
18
-h - Hides a topmenu.
19
-t - Changes the text of a topmenu.
20 1 Per Amundsen
21
*Parameters*
22
23 6 Per Amundsen
[N] - Position to insert at when using -i. (AdiIRC only)
24 1 Per Amundsen
[on] - Enables Menubar.
25
[off] - Disables Menubar.
26 6 Per Amundsen
[name] - Name of a topmenu item to add/delete/modify. (AdiIRC only)
27
28
[text] - Text for the new topmenu to add/edit. (AdiIRC only)
29 3 Per Amundsen
30
*Example*
31
32
<pre>
33
; Setup a custom menu for the 'mymenu' topbar.
34
menu mymenu {
35
  Hello World:echo -ag Hello world
36 8 Per Amundsen
  Menu name:echo -ag Menu name is $menu
37 3 Per Amundsen
}
38
39
; Adda a new top menu named 'mymenu' with the text 'Top Menu Test'.
40
/menubar -a mymenu Top Menu Test
41
42 7 Per Amundsen
; Changes the text of the topmenu named 'mymenu' to 'Top Menu Test2'.
43
/menubar -t mymenu Top Menu Test2
44
45 3 Per Amundsen
; Delete the topmenu named 'mymenu'.
46
/menubar -d mymenu
47
</pre>