Using ActiveX Events to Trigger Scripts
- Last UpdatedNov 06, 2021
- 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:
-
Click
-
DoubleClick
-
NewAlarm
-
ShutDown
-
StartUp
The Click event has one parameter called ClicknRow, which identifies the row that is clicked at run time.
The DoubleClick event has one parameter called DoubleClicknRow, which identifies the row that is double-clicked at run time.
Click and DoubleClick events are zero-based. When Click 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.