[Menu.*] Section

 
You can define two popup menus for the tray icon: one for the left mouse button and one for the right button. In the [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:

TypeREQ

Value

item|separator|submenu|servicesubmenu

Description

There are four types of menu items:

Example

Type: separator
Caption

Value

String

Description

If the item is a menu item, 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.
If the item is a separator, and if you've set SeparatorsSeparatorStyle to shortline or caption, Caption can be used to insert a text into the separator.

Example

Caption: "&Drag && Drop"
Glyph

Value

Glyph index

Description

If you want a glyph to appear next to the menu item, specify its index here.

Example

Glyph: 2
SubMenu

Value

Section name

Description

If the item's type is 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.

Example

SubMenu: MySubMenu
Action

Value

Action type

Description

If the item's type is 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.
If the action that's associated with the menu item appears to be unavailable, AeTrayMenu will automatically disable the item. For example, if a service is already running, menu items that would start the service will be disabled.

See also See Also
[Menu.*.Settings] Section
[Config]: ImageList
List of Available Actions