Sycamore Posted October 18, 2008 Posted October 18, 2008 GUICtrlCreateButton("", $xstart, $ystart, 10, 10) If FileExists(blahblahblah.txt) Then GUICtrlSetBkColor(-1,0xff0000) ; this part sets the color just fine Else GUICtrlSetBkColor(-1,0x00ff00) EndIf GUICtrlSetOnEvent(-1,"ColorQuery") 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.
BrettF Posted October 18, 2008 Posted October 18, 2008 Set the colour to a variable and access it later. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Sycamore Posted October 18, 2008 Author Posted October 18, 2008 Set the colour to a variable and access it later.Cheers,Brett 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now