Key Actions

Key actions are simple macro key assignments that are associated with individual displays. For a list of the command types you can assign a keystroke of your choosing to, click here. By default, the command is Run Script. This list of commands is identical to the commands that are available as Pick actions.

To add a Key Action to a display:

  1. Click a blank area of the display to select the This Display object. (To confirm that you have selected the ThisDisplay object, look in the Properties tab and confirm that properties of the ThisDisplay object appear there.)

  2. Click the ClosedFunction Key button in the This Display tab group on the Dynamics ribbon, or click the Function Key button in the Dynamics tab. An entry for the Function Key action appears on the Dynamics tab.

    The Function Key Button on the Dynamics Ribbon

  3. With the new Pick Action entry selected, click the Command property and set the command type you desire from the list at the top of this topic. You can choose between local commands or global commands.

  4. Click the CommandParameters properties and set the parameters associated with the action you wish to define.

  5. Click the ShortcutKeyproperty and select the key that will be part of your keystroke.

  6. Click the ShortcutModifierKeysand select the modifiers you want to be part of your keystroke.

  7. Set any other properties that are appropriate for the shortcut key you are setting.

  8. Save your assignment(s); then go into runtime and test that your keystroke works correctly.

In the figure below, the keystroke Ctrl+Alt+B was assigned to a Display Back action (using the Command parameter) and applied to the current display. At runtime you would use this keystroke to move back to the previous display in your session history. For more about Display Back and other commands, refer to Commands for Buttons, Pick Actions, and Function Keys.

A Key Action Defined in the Dynamics Properties Panel

A key action definition. Key actions apply to displays. The key icon (red circle) can be use to create new key actions.

See also:

Dynamics in the GraphWorX64 Interface

Displays

Properties Tab