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

InTouch HMI

Configuring Scripts to Read and Write ActiveX Control Properties

Configuring Scripts to Read and Write ActiveX Control Properties

  • Last UpdatedNov 07, 2016
  • 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.

To read data from or write data to an ActiveX control property

  1. Open a script window, point to Insert, and click ActiveX. The ActiveX Control Browser dialog box appears.

    ActiveX Control Browser dialog

  2. Click 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.

  3. Click the name of the property to use from the right pane. The property name is inserted into the script window at the cursor position.

  4. Assign the property name to a tag or use according to your specifications.

  5. Click 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";

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