InTouch 2020 R2 SP1 - Color Picker ActiveX Event Scripts Not Running

Tanquen

Member
Join Date
Jul 2014
Location
CA
Posts
163
I found a Color Picker and it has some demo script to set the InTouch Window to the color selected from a button actions script. It works but I'd like to have the ActiveX objects ActiveX Event Script do the same with the OnClick Event.

I could see there being a time issue or that you can get the selected color (#XColorPicker1.SelectedColor) from the same objects ActiveX Event Script but I cant even get the LogMessage to work.

LogMessage("It Ran");

This is the scrip that works fine from a button on the same window.

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;

Mem_ColorR = SelectColor & 0xFF;
Mem_ColorG = (SelectColor & 0xFF00) SHR 8;
Mem_ColorB = (SelectColor & 0xFF0000) SHR 16;

DIM ThisWindowsName AS MESSAGE;
GetWindowName(ThisWindowsName);

CALL WindowColor (ThisWindowsName);
 
Last edited:

Similar Topics

Hi all, I recently upgraded to 2020 R2 SP1 Patch 1. I have some 2017 intouch apps I want to be able to view in windowmaker and tried to do so...
Replies
3
Views
808
Hi All Predictably, I have a problem making Intouch talk to compactlogix 5380 plc !!! In Intouch I've declared : Access name = Tank_Farm Node...
Replies
0
Views
703
Hi AllN Predictably, I have a problem making Intouch talk to compactlogix 5380 plc !!! In Intouch I've declared : Access name = Tank_Farm Node...
Replies
13
Views
3,136
I consider myself extremely versed with Wonderware InTouch and Archestra, but have not touched 2020 yet. In terms of InTouch scripting, SQL...
Replies
2
Views
2,314
Hello I was running Windows 10 Pro and Archestra AVEVA 2020. Everything was running fine with this setup. Corporate wanted me to upgrade the PC’s...
Replies
3
Views
1,338
Back
Top Bottom