This solution is for Windows based HMI.
When you initialize or running HMI display script you can see Activex error or warning. It keeps popping up and irritating .You can avoid this problem with a registry edit.
Go to Registry Editor
Run “Regedit” command.
change the registry setting
:ActiveX controls and plug-ins->Run ActiveX controls and plug-ins
:ActiveX controls and plug-ins->Initialize and script ActiveX controls not marked as safe
:Miscellaneous->Allow scripting of Microsoft web browser control
You can use this registry hack for all SCADA (HMI system ,DCS ) system regardless of manufacturer