You can assign an add-in method to a menu command, to a toolbar icon or to a hot-key shortcut.
To do it, open the appropriate configuration file
The assignment to a menu command opens with <l:ShellMenuItem, that contains following statements: •Header: the name of the option as it appears on the menu, enclosed in double-quotes. To mark a letter as an accellerator, use the underscore character "_". •CommandParameter: this is where you type the name of the add-in method name, enclosed in double-quotes. If the method has parameters, in this statement do not specify them, but just the method name. •Parameters: this is required only for assignments of methods with parameters. Here you type the method parameters, enclosed in double-quotes. •The assignment closes with />.
|
The assignment to a toolbar icon opens with <l:TBBtn that contains following statements: •CommandParameter: this is where you type the name of the add-in method name, enclosed in double-quotes. If the method has parameters, in this statement do not specify them, but just the method name. •ToolTip: this is where you type the tooltip to display when the mouse hovers over the icon. •Icon: this is where you specify the icon file name. •Param: this is required only for assignments of methods with parameters. Here you type the method parameters, enclosed in double-quotes. •The assignment closes with />.
|
The assignment to a shortcut key opens with <KeyBinding that contains following statements: •CommandType: Script or ParametersScript. •CommandParameter: this is where you type the name of the add-in method name, enclosed in double-quotes. If the method has parameters, in this statement do not specify them, but just the method name. •Modifier: this is where you type the modifiers, e.g. SHIFT, CTRL, ALT. •Key: this is where you specify the key name. •Param: this is required only for assignments of methods with parameters. Here you type the method parameters, enclosed in double-quotes. •The assignment closes with />.
|
|
|