Forum Discussion

SLibernard's avatar
SLibernard
Occasional Contributor
8 years ago
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.

1 Reply

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    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.