Command Animation

To edit the Command animation interface, do the following:
  1. Select the object.
  2. Click the Command animations icon in the Animations group.

  3. Right-click on the object. The Object Properties dialog for the Command animation will open.

  4. Click the Config… button.
  5. Select VBScript as the Type.

Use this interface to execute logics when the user clicks on the object where the Command animation is applied (during runtime) or presses the shortcut (Key) associated with the Command animation.

Variables declared in this interface are available for this interface only (local scope). In other words, they are not available for any other object in the project. You cannot implement procedures in this interface. You can, however, call procedures implemented in the Global Procedures or in the Screen Script interface for the same screen where the Command animation is configured.

Note: For more information, see Command animation.
'The script below will be executed when the user clicks on the object
'where this animation is configured
$MyValue = InputBox("Please enter the new set-point", "Set-point")