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