Keyboard and mouse shortcuts syntax and examples

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

This topic shows the syntax of script calls for keyboard/mouse shortcuts. It applies on script without parameters, and on scripts with a single string parameter.

Scripts with more than one parameter, or with one parameter that is not a string parameter, cannot be called from menus, toolbars and keys/mouse.

Typical entries - without parameters

These are suitable to call scripts without any parameter.

Keyboard/mouse

<KeyBinding CommandType="Script" CommandParameter="ToggleShow" Modifiers="ALT" Key="F9"/>

<MouseBinding CommandType="Script" CommandParameter="MouseWheel" Modifiers="CTRL" MouseAction="WheelClick"/>

<MouseBinding CommandType="Script" CommandParameter="EditSelectSentence" Modifiers="Control" MouseAction="LeftClick"/>

Typical entries - with parameters

These are suitable to call scripts with one string parameter, but cannot be used for scripts that require more than one parameter.

Keyboard/mouse

<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="D,W" Modifiers="CTRL" Key="Down"/>

Note

In keyboard/mouse calls, there are two differences between calls of scripts without parameters and with parameters: CommandType="Script" or "ParametersScript"; in the latter case, there's a Param="" statement.

See also

If a modified menu command / shortcut key do not function

Quick reference of keyboard and mouse shortcuts