Jump to content
Sign in to follow this  

Can set a button's background color, but cannot retrieve the button's background color

Recommended Posts


GUICtrlCreateButton("", $xstart, $ystart, 10, 10)

If FileExists(blahblahblah.txt) Then

GUICtrlSetBkColor(-1,0xff0000) ; this part sets the color just fine





func colorquery()

this is where I haven't got a clue - i've searched and searched, and it seems like nothing is available to tell me the color

of a control.

I set the color with one simple command, so I was hoping I could retrieve the color with one simple command.


Share this post

Link to post
Share on other sites

Set the colour to a variable and access it later.



:idea::(:P Thanks! That kinda points me in the direction I thought I'd have to go...

outback southeast of Alice Springs... :) I'm having great fun - I really love AutoIT - and if my brain starts to

melt it's my own fault...I've been at this 12-18 hours a day for at least a week...

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.