Menubar » History » Revision 27
Revision 26 (Per Amundsen, 03/26/2021 06:22 PM) → Revision 27/28 (Per Amundsen, 03/26/2021 06:52 PM)
_Added in 1.9.0_ */menubar [on|off]* Enables or disables [[Menubar_Control|Menubar]]. Menubar. [[$menubar]] can be used to determine it's state. If no parameter is defined, prints current [[Menubar_Control|Menubar]] Menubar visibility status. _When [[Menubar_Control|Menubar]] 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_. *Parameters* [on] - Enables [[Menubar_Control|Menubar]]. Menubar. [off] - Disables [[Menubar_Control|Menubar]]. Menubar. ----------------------------------------------------------------------------- _Added in 1.9.7_ */menubar [-adrishtiox] [N] <N|name> <@popup> [text]* Adds or removes custom [[Scripting_Menus|menu items]] to the [[Menubar_Control|Menubar]]. Menubar. _*AdiIRC only*_ *Switches* -a - Add a new menu. -d - Delete item named <name> or the Nth item. -r - Resets all menus to default. -i - Insert a menu at position [N]. -s - Show a hidden menu. -h - Hide a menu. -t - Change the text of a menu. -o - Change the @popup menu associated with the menu. -x - Add a separator. *Parameters* <N> - Position to insert or delete at when using -i/-d. <N|name> - Name of a menu item to add/delete/modify or the Nth position to insert at when -i is used. <@popup> - The @popup menu to associate with the menu. *Example* <pre> ; Setup a custom menu for the 'mymenu' menu. menu @mymenu { Hello World:echo -ag Hello world Menu name:echo -ag Menu name is $menu } ; Adda a new menu named 'mymenu' with the text 'Top Menu Test'. /menubar -a mymenu @mymenu Top Menu Test ; Changes the text of the menu named 'mymenu' to 'Top Menu Test2'. /menubar -t mymenu Top Menu Test2 ; Delete the menu named 'mymenu'. /menubar -d mymenu </pre>