Menubar » History » Version 28
Per Amundsen, 02/16/2023 02:45 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 9 | Per Amundsen | */menubar [on|off]* |
| 4 | 1 | Per Amundsen | |
| 5 | 27 | Per Amundsen | Enables or disables [[Menubar_Control|Menubar]]. |
| 6 | 4 | Per Amundsen | |
| 7 | [[$menubar]] can be used to determine it's state. |
||
| 8 | 1 | Per Amundsen | |
| 9 | 27 | Per Amundsen | If no parameter is defined, prints current [[Menubar_Control|Menubar]] visibility status. |
| 10 | 1 | Per Amundsen | |
| 11 | 27 | Per Amundsen | _When [[Menubar_Control|Menubar]] is disabled, it can be temporary enabled by pressing the %(key)ALT% key, it can also be viewed by right-clicking the [[Titlebar Control|Titlebar]] in the main AdiIRC window_. |
| 12 | 22 | Per Amundsen | |
| 13 | 9 | Per Amundsen | *Parameters* |
| 14 | |||
| 15 | 28 | Per Amundsen | table(ktable). |
| 16 | |*Parameter*|*Description*| |
||
| 17 | | [on] | Enables [[Menubar_Control<notextile>|</notextile>Menubar]]. | |
||
| 18 | | [off] | Disables [[Menubar_Control<notextile>|</notextile>Menubar]]. | |
||
| 19 | 9 | Per Amundsen | |
| 20 | 18 | Per Amundsen | ----------------------------------------------------------------------------- |
| 21 | |||
| 22 | 12 | Per Amundsen | _Added in 1.9.7_ |
| 23 | |||
| 24 | 23 | Per Amundsen | */menubar [-adrishtiox] [N] <N|name> <@popup> [text]* |
| 25 | 9 | Per Amundsen | |
| 26 | 27 | Per Amundsen | Adds or removes custom [[Scripting_Menus|menu items]] to the [[Menubar_Control|Menubar]]. |
| 27 | 9 | Per Amundsen | |
| 28 | 1 | Per Amundsen | _*AdiIRC only*_ |
| 29 | |||
| 30 | *Switches* |
||
| 31 | |||
| 32 | 28 | Per Amundsen | table(ktable). |
| 33 | |*Switch*|*Description*| |
||
| 34 | | -a | Add a new menu. | |
||
| 35 | | -d | Delete item named <name> or the Nth item. | |
||
| 36 | | -r | Resets all menus to default. | |
||
| 37 | | -i | Insert a menu at position [N]. | |
||
| 38 | | -s | Show a hidden menu. | |
||
| 39 | | -h | Hide a menu. | |
||
| 40 | | -t | Change the text of a menu. | |
||
| 41 | | -o | Change the @popup menu associated with the menu. | |
||
| 42 | | -x | Add a separator. | |
||
| 43 | 1 | Per Amundsen | |
| 44 | 23 | Per Amundsen | *Parameters* |
| 45 | 1 | Per Amundsen | |
| 46 | 28 | Per Amundsen | table(ktable). |
| 47 | |*Parameter*|*Description*| |
||
| 48 | | <N> | Position to insert or delete at when using -i/-d. | |
||
| 49 | | <N<notextile>|</notextile>name> | Name of a menu item to add/delete/modify or the Nth position to insert at when -i is used. | |
||
| 50 | | <@popup> | The @popup menu to associate with the menu. | |
||
| 51 | 3 | Per Amundsen | |
| 52 | *Example* |
||
| 53 | 1 | Per Amundsen | |
| 54 | 3 | Per Amundsen | <pre> |
| 55 | 14 | Per Amundsen | ; Setup a custom menu for the 'mymenu' menu. |
| 56 | 9 | Per Amundsen | menu @mymenu { |
| 57 | 8 | Per Amundsen | Hello World:echo -ag Hello world |
| 58 | 3 | Per Amundsen | Menu name:echo -ag Menu name is $menu |
| 59 | } |
||
| 60 | |||
| 61 | 14 | Per Amundsen | ; Adda a new menu named 'mymenu' with the text 'Top Menu Test'. |
| 62 | 9 | Per Amundsen | /menubar -a mymenu @mymenu Top Menu Test |
| 63 | 7 | Per Amundsen | |
| 64 | 14 | Per Amundsen | ; Changes the text of the menu named 'mymenu' to 'Top Menu Test2'. |
| 65 | 7 | Per Amundsen | /menubar -t mymenu Top Menu Test2 |
| 66 | 3 | Per Amundsen | |
| 67 | 14 | Per Amundsen | ; Delete the menu named 'mymenu'. |
| 68 | 3 | Per Amundsen | /menubar -d mymenu |
| 69 | 1 | Per Amundsen | </pre> |