Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Configure action scripts

  • Last UpdatedApr 09, 2025
  • 3 minute read

Use action scripts to associate operator actions with graphic objects. You can configure one or more of the following events with a graphic object:

  • Selecting the left, center, or right mouse button.

  • Selecting and holding the left, center, or right mouse button.

  • Releasing the left, center, or right mouse button.

  • Double-clicking the left, center, or right mouse button.

  • Pressing a key or key combination.

  • Pressing and holding a key or key combination.

  • Releasing a key or key combination.

  • Moving a mouse pointer over an object.

An action script can only be configured in the Animation Link Selection panel of the object itself.

Important: If a key script exists that is triggered by the same key or key combination as the action script, the action script is executed and the key script is ignored.

Configure an action script

  1. Double-click the graphic object. The Animation Links Selection panel appears.

    Animation Links Selection panel

  2. Select Action. The Touch -> Action Script dialog box appears.

    Touch Action Script dialog

  3. In the Condition Type list, select one of the following:

    To configure a script that executes on this condition

    Select

    One time when the left mouse button or a certain key or key combination is pressed

    On Left Click/Key Down

    Periodically while the left mouse button or a certain key or key combination is pressed

    While Left/Key Down

    One time when the left mouse button or a certain key or key combination is released

    On Left/Key Up

    One time when the left mouse button is double-clicked

    On Left Double Click

    One time when the right mouse button is pressed

    On Right Click

    Periodically while the right mouse button is pressed

    While Right Down

    One time when the right mouse button is released

    On Right Up

    One time when the right mouse button is double-clicked

    On Right Double Click

    One time when the center mouse button is pressed

    On Center Click

    Periodically while the center mouse button is pressed

    While Center Down

    One time when the center mouse button is released

    On Center Up

    One time when the center mouse button is double-clicked

    On Center Double Click

    One time when the mouse moves over the object

    On Mouse Over

  4. If you select On Left Click/Key Down, While Left/Key Down, or On Left/Key Up:

    1. Select Key. The Choose Key dialog box appears.

    2. Select a key.

    3. Select the Ctrl and/or Shift checkboxes to assign a control key and/or shift key combination to your selected key.

  5. If you select While Left/Key Down or While Right Down, type a time interval between 1 and 360000 milliseconds in the Every box.

  6. If you select On Mouse Over, in the After box, type the number of milliseconds between 1 and 360000 to pass after the mouse has moved over the object before the script is executed.

  7. Type your script in the window.

  8. Select OK.

Delete all action scripts associated with an InTouch graphic object

  1. Double-click the graphic object. The object properties panel appears.

    Object properties panel

  2. Select to clear the Action checkbox. The action scripts will not be executed during run time. If you select the Action button, the editor opens with the last action script that you saved for any object.

    Delete an individual action script

    1. Double-click the graphic object that has the action script to delete. The object properties panel appears.

    2. Select the Action button. The Touch -> Action Script dialog box appears.

    3. In the Condition Type list, select the script trigger.

    4. On the Edit menu, select Clear. The script from the main section clears and the associated script is deleted.

      Related Links
      TitleResults for “How to create a CRG?”Also Available in