SLibernard
8 years agoOccasional Contributor
Solved
How to do operations in the MS Windows OS's colorbox
I am writing a script to select color for a traingle, and when I click the color button, it appears the color box like this,
it seems like the default color box of MS Windows OS, Someone could tell me how to operate it in VBS, I don't want to use the coordinates to click the color...
A simple workaround is to click "Define Custom Colors" and then enter the R G B values.
Check the sample project <TC12 Samples>\Desktop\Hello\Scripts\Hello_VBScript, specifically the SetColor function. You can copy-paste it to your project, replacing the object references with the corresponding object names in your tested app.