Use ActiveX events to trigger scripts
- Last UpdatedJun 20, 2024
- 1 minute read
You can assign QuickScripts to Alarm Viewer control events, such as a mouse click or double-click. When the event occurs, the QuickScript runs.
The Alarm Viewer control supports the following events:
-
Select
-
Double-click
-
NewAlarm
-
ShutDown
-
StartUp
The Select event has one parameter called ClicknRow, which identifies the row that is selected at run time.
The Double-click event has one parameter called DoubleclicknRow, which identifies the row that is double-clicked at run time.
Select and Double-click events are zero-based. When select and/or DoubleClick events are published for the user, the row count in the display starts with 0.
Note: The Alarm Viewer control ignores the user interface methods when they are called from StartUp event because the control is not visible yet. These include: ShowSort(), ShowContext(), GetSelectedItem(), GetNext(), GetPrevious() and AboutBox().
For more information about scripting ActiveX events, see Scripting ActiveX Controls in AVEVA™ InTouch HMI Application Development Guide.