Configure scripts to read and write ActiveX control properties
- Last UpdatedJul 24, 2024
- 1 minute read
In a script, you can configure ActiveX control properties to either write values to or read values from InTouch HMI tagnames or other expressions.
Read data from or write data to an ActiveX control property
-
Open a script window, point to Insert, and select ActiveX. The ActiveX Control Browser dialog box appears.

-
Select the name of the ActiveX control from the left pane. The right pane contains the names of properties and methods of the selected ActiveX control.
-
Select the name of the property to use from the right pane. The property name is inserted into the script window at the cursor position.
-
Assign the property name to a tag or use according to your specifications.
-
Select OK.
Example(s)
The following script reads the ToPriority property of the ActiveX control instance AlarmViewerCtrl1 into the integer tagname topri.
topri = #AlarmViewerCtrl1.ToPriority;
The following script writes the value MS Comic to the Font property of the ActiveX control called AlarmViewerCtrl1. This example changes the display font of the AlarmViewer ActiveX control dynamically.
#AlarmViewerCtrl1.Font = "MS Comic";