buzz44 Posted February 21, 2005 Share Posted February 21, 2005 (edited) hello.. i am aware of _ColorGetRed/Green/Blue returns the RGB Colour from 1-255 from a Hexidecimal eg . 0x8080FF .... is there a function so that i can reverse this .. ie.. input the RGB value 1-255 first then it returns the hex . the only other way i could think of was to do sumthing like this If GUICtrlRead ($Input_1) = 0 Then GUICtrlSetData ($Label_4, "FF") ElseIf GUICtrlRead ($Input_1) = 1 Then GUICtrlSetData ($Label_4, "FE") ElseIf GUICtrlRead ($Input_1) = 2 Then GUICtrlSetData ($Label_4, "FD") ElseIf GUICtrlRead ($Input_1) = 3 Then GUICtrlSetData ($Label_4, "FC")which would be very time consuming as u would have to do it for every value 00-FF and for RG and B...ty in advance Edited February 21, 2005 by burrup qq Link to comment Share on other sites More sharing options...
sPeziFisH Posted February 21, 2005 Share Posted February 21, 2005 just use the function 'Hex ( number, length )' (see AutoIt-help), e.g. $result = Hex(255, 2) MsgBox(0,"",$result) Link to comment Share on other sites More sharing options...
buzz44 Posted February 21, 2005 Author Share Posted February 21, 2005 ty .. for sum reason i totally disregaurded that when lookinf. even thou i did look at it. ty qq Link to comment Share on other sites More sharing options...
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