[Menu.*] Section |
[Menu.Left]
and [Menu.Right]
sections, you can define the menu-items you want to appear in the menus.
Here is an example of a [Menu.Left]
section:
[Menu.Left]
Type: separator; Caption: "Service Monitor"
Type: item; Caption: "&About..."; Action: about; Glyph: 1
Type: item; Caption: "E&xit"; Action: exit
Type: separator; Caption: "Services"
Type: servicesubmenu; Caption: "&Messenger"; Service: Messenger; SubMenu: MessengerMenu
Type: servicesubmenu; Service: ClipSrv; SubMenu: ClipSrvMenu
Type: item; Caption: "Start All Services"; Action: multi; Actions: StartAll
Type: item; Caption: "Stop All Services"; Action: multi; Actions: StopAll
Type: item; Caption: "&Services Applet"; Action: controlpanelservices
Type: separator; Caption: "Programs"
Type: item; Caption: "&Notepad"; Action: run; FileName: "%Windows%\Notepad.exe"; Glyph: 5
Type: submenu; Caption: "&Other"; SubMenu: MySubMenu; Glyph: 3
[MessengerMenu]
...
[ClipSrvMenu]
...
[MySubMenu]
...
The following is a list of the supported parameters:
item
|separator
|submenu
|servicesubmenu
item
- a normal menu item that can perform an action when the user clicks on it. You should also specify the Caption
and Action
parameters.separator
- a horizontal line. You can adapt the separators' style using the Separators*
settings in the [Menu.*.Settings]
sections.SeparatorsSeparatorStyle
directive to shortline
or caption
, you can also specify a Caption
. Omitting the Caption
parameter in case of the caption
style causes a 'normal' separator to be drawn.
submenu
Caption
and the SubMenu
parameters.
servicesubmenu
- a special kind of submenu whose glyph is automagically adjusted to the running state of the service; see also [Config]: ServiceGlyph*. You also have to specify the Service
and SubMenu
parameters. If you omit Caption
, the caption will be set to the service's display name.Type: separator
Caption
defines the caption of the menu item. The first character that is preceeded by an ampersand (&) will serve as hotkey. If you've set AutoHotKeys
to true, it's possible that the hotkey will be changed/added if there are duplicate hotkeys. To embed an ampersand in the caption, use two consecutive ampersands.SeparatorsSeparatorStyle
to shortline
or caption
, Caption
can be used to insert a text into the separator.
Caption: "&Drag && Drop"
Glyph: 2
submenu
or servicesubmenu
, you have to create a section in the configuration file in which you list its items. Specify that section's name here.
SubMenu: MySubMenu
item
, then an action is performed when the user clicks it. Take a look at the List of Available Actions for a complete reference on the actions that can be performed by AeTrayMenu.