Jump to content

I wanna make red/green/Orange square


caramen
 Share

Go to solution Solved by UEZ,

Recommended Posts

Hello all :)

I made that migration script but i just wanna improve it with a single view to see if evrything is ok with Colored squares

3qgYV6.png

How can i make a red square anywhere in my guy with conditional things

something like :

ControlRead ($Control1)

If $control1 = UAC activé then

    Make redsquare here

ElseIf $control1 = UAC desactivé then

    Make Greensquare here

Any help in the syntax ?

in my mind i should first of all make a white square somewhere and change the color of that square depend of my conditions ... but how can i make a square that i can change with Guictrlsetcolor ?

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

  • Solution

What about the idea to set the GUI background color according to the condition instead of creating any graphic object?

Otherwise, just create a lable somewhere in your GUI and change the bg color of it as desired.

$iLabel_Status = GUICtrlCreateLabel("", 0, 0, 32, 32)
GUICtrlSetBkColor(-1, 0xFF0000)

Later you can change the color using GUICtrlSetBkColor($iLabel_Status, 0xFFFF00) or so.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

This is just fine... i would like to not change the general GUI color but i thought about it me too x)

I dont expected i was able to change each label it s exactly what i need thx man.

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...