Configure ActiveX event scripts
- Last UpdatedApr 09, 2025
- 2 minute read
Use ActiveX event scripts to run a script when an ActiveX event occurs. Depending on the ActiveX control, such events can include:
-
ActiveX control is started: Startup
-
ActiveX control is closed: Shutdown
-
User selects ActiveX control: Click
-
User double-clicks on ActiveX control: Doubleclick
An ActiveX event script is identified by a name. By default, the InTouch HMI automatically adds the control name and event that the script is associated with. For example: MyActiveXScript (AlarmViewerCtrl1::Click).
Configure a new ActiveX event script
-
Double-click on the ActiveX control to configure. The ActiveX control properties dialog box appears.

-
Select the Events tab.

-
Select an event such as click, double-click, shut down, or start up.
-
Select the Scripts cell for that event. Square brackets appear.
-
Type in a new name for an event script and select OK. When a message appears, select OK to create a new script.
The ActiveX Event Scripts dialog box appears.

-
In the Name box, you can make changes to the ActiveX event script name.
-
Type your script in the window.
-
Select OK.
Edit an existing ActiveX event script
-
In the Scripts pane, expand ActiveX Event, right-click the ActiveX script name and select Edit. The ActiveX Event Scripts dialog box appears.
-
Make any necessary changes to the script and select OK.
Delete an existing ActiveX event script
-
Make sure that no ActiveX controls are using the ActiveX event script to delete. If there are ActiveX controls using the script, do the following first:
-
Remove the ActiveX event script references in the Events panel of every ActiveX control that may be using it.
-
Close all windows and update the use counts.
-
-
In the Scripts pane, expand ActiveX Event, right-click the ActiveX script name and select Delete. When a message appears, select Yes. The ActiveX event script is deleted.