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 (1926 downloads )

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

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

    It was still using the old ocx file but now I get a virus warring from Windows 10 Defender when I copy the XColorPicker.ocx to the computer.

    virustotal.com and Malwarebytes flags it as malware

    Trojan:Script/Wacatac.B!ml
    Alert level: Severe
    Status: Active
    Date: 6/3/2022 11:59 AM.
    Category: Trojan
    Details: This program is dangerous and executes commands from an attacker.

    Affected items:
    containerfile: C:\Users\…\Desktop\XColorPicker_22.5.8167.42278.zip
    file: C:\Users\…\Desktop\XColorPicker_22.5.8167.42278.zip->XColorPicker.ocx

    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

      The ActiveX file was compress with UPX to reduce the size of file, you can use UPX to decompress the ocx file by the command below:
      "upx.exe" -d ".\XColorPicker.ocx" --backup --all-methods --all-filters

      Then upload to virustotal to check it.

      UPX can be download from here: https://upx.github.io/

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

    Not sure about how all that works. UPX is maybe a trojan and adds them to files so you use it to remove it and then test the file?

    https://github.com/upx/upx/issues/337

    This makes it sound like only some old(?) versions of the UPX.exe would be shown as a false positive not the files they compress.

    Will it work without UPX? Why use it if it get hit with false/real trojan detections?

Leave a Reply

Your email address will not be published. Required fields are marked *

− 6 = 2