Intouch Color Picker ActiveX Library

XColorPicker is an Activex Control help you to pick a color easilly.

[File Info]
File Version: 22.5.8167.42278
MD5: DEF880CE5D207733C8D63156060447C8
SHA1: CEB2C7D20BD8324E51E39DD50A9BEB6E500B3B91
CRC32: BB933E26

[22.5.8167.42278]
! Fix a problem that events not trigged.

[File Info]
File Version: 19.12.7302.9326
MD5: CA03E43076A74951E1FE0637BAB24F8A
SHA1: F2DDFBC429B30647D9AF61FC4A1FC001CC8E1E3F
CRC32: 4415C351

[INSTALL]
1.Run Register.bat as administrator.
2.On the Special menu, point to Configure and then click Wizard/ActiveX Installation. The Wizard/ActiveX Installation dialog box appears.
3.Click the ActiveX Control Installation tab. The ActiveX Control Installation property sheet appears.
4.In the Installed ActiveX controls list, select XColorPicker to install in the Available ActiveX controls list and then click Install.

[UNINSTALL]
1.On the Special menu, point to Configure and then click Wizard/ActiveX Installation. The Wizard/ActiveX Installation dialog box appears.
2.Click the ActiveX Control Installation tab. The ActiveX Control Installation property sheet appears.
3.In the Installed ActiveX controls list, select XColorPicker to remove from your application and then click Remove. A message appears asking you to confirm the deletion.
4.Run UnRegister.bat as administrator.

Please refer “Visualization : ActiveX Controls” in “Wonderware InTouch HMI Help” for more information.

[Demo App]
The demo app was made by Intouch 10.1

[Sample script]

DIM SelectColor AS INTEGER;
SelectColor = #XColorPicker1.SelectedColor;

DIM ColorR AS INTEGER;
DIM ColorG AS INTEGER;
DIM ColorB AS INTEGER;
DIM Result AS INTEGER;

ColorR = SelectColor & 0xFF;
ColorG = (SelectColor & 0xFF00) SHR 8;
ColorB = (SelectColor & 0xFF0000) SHR 16;

Result= ChangeWindowColor(“Sample”, ColorR, ColorG, ColorB);

XColorPicker_22.5.8167.42278.zip (257 downloads)

4 thoughts on “Intouch Color Picker ActiveX Library

  1. Google Chrome 101.0.4951.54 Google Chrome 101.0.4951.54 Windows 10 x64 Edition Windows 10 x64 Edition
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36

    Is there a way to use the event script to have the window color change when the color is clicked?
    None of the OnChange or On Click even scripts seem to run. Only the StartUp event script worked.

    1. Firefox 100.0 Firefox 100.0 Windows 10 x64 Edition Windows 10 x64 Edition
      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

      Please download the new version 22.5.8167.42278.
      The Click, DblClick, KeyPress and OnChange events work as expected.

      1. Google Chrome 101.0.4951.54 Google Chrome 101.0.4951.54 Windows 10 x64 Edition Windows 10 x64 Edition
        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36

        Still not working. Maybe it’s an issue with the newer version of Windows (21H2 Build 19044.1645) or InTouch (2020 R2 SP1).

        1. Firefox 100.0 Firefox 100.0 Windows 10 x64 Edition Windows 10 x64 Edition
          Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

          Tested on Windows Server 2022 20348.169 with Intouch Version: 20.1.100 5100.0753.1868.2. It works as expected.
          Please check the XColorPicker.ocx in C:\Windows\System32\ (Windows 32bit) and C:\Windows\SysWOW64 (Windows 64bit), make sure it was updated correctly.

Leave a Reply

Your email address will not be published.

× 7 = 35