Document version: 1.0
Author(s): Sven Gijsen
Date: July 2015
Let's create a custom menu configuration file:
|
The first thing we need to do before we can start adding some custom menu entry keys is to add a special group to which all menu entry keys are added. This group should be named CustomMenuActions and is placed between brackets ([]) to mark it as a group like:
|
Now we can start adding custom menu entry keys to the group we've just created following this syntax:
|
We can see from the above syntax that each menu entry key has a name section that is defined by 3 sections which are separated by a vertical bar (|) sign. The following table explains each section:
section | Description |
---|---|
MenuEntryKeyName | The name of the menu entry key, this name is internally used and can be anything as long ads there are no empty spaces in it and it shouldn't start with a hash (#) sign (because the line would then be commented/skipped). Important! The custom menu items are sorted by this name before they are added to the menu, so if two item are added to the same (sub)menu then you should bear in mind that their name determines the position in the menu. |
MenuEntryType | This section specifies the type of the menu entry, the type can be:
|
MenuEntryFilePath | Depending on the MenuEntryType (see above) this can be left empty or contain a relative or absolute file path. Important! a specified file path should either have a forward-slash (/) character or double back-slashes (\\) characters for each directory separator. |
MenuEntryMenuPath | This defines the resulting menu path architecture for the new custom menu entry, each level should be specified by using a forward-slash character and starting from the top menu going down to the custom menu entry. Sub-menu's are automatically created if needed. You can also add a horizontal separator (line) in a submenu between menu entries to make a better visual distinction between the entries. You can do this by using the MenuEntryType MenuItem and using a underscore (_) character for the lowest/last level in this MenuEntryMenuPath section, see below for an example. |
Let's add some different custom menu entries:
|
A relative path (starting from the Main Program directory) to a example script that should be executed when the custom menu entry is clicked.
|
A horizontal menu separator line, no script file.
|
A absolute path where the directory separator is a forward-slash (/).
|
A absolute path where the directory separator is a double back-slash (\\).