Simplix Posted November 15, 2006 Posted November 15, 2006 Hi. I use the ObjCreate function to show a default windows color dialog. Now I´d like to split the color-value given by the color-property into its RGB parts like 255,0,0. I looked for some VB-Sample-Code to do this and do it the same way in AutoIt but it does not seem to work. Can someone give me an AutoIt Code example? Thanks in advance.
MHz Posted November 15, 2006 Posted November 15, 2006 Welcome to the forum, Sure, here is an example out of the helpfile for you. #include <Misc.au3> $color = _ChooseColor (2, 255) ; default color selected using COLORREF rgbcolor If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf Like magic.
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