Jump to content

get the red, green and blue values from a hex rgb color


komalo
 Share

Recommended Posts

hi

how to get the red, green and blue values from a Function _ChooseFonthex rgb color ?

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]
Link to comment
Share on other sites

Wow. This is a new case of retardedness and not reading the help file. Lets have a look at example 2 shall we?

#include <Misc.au3>

; Example 2
$a_font = _ChooseFont()
If (@error) Then
    MsgBox(0, "", "Error _ChooseFont: " & @error)
    Exit
Else
    MsgBox(0, "", "Font Name: " & $a_font[2] & @LF & "Size: " & $a_font[3] & @LF & "Weight: " & $a_font[4] & @LF & "COLORREF rgbColors: " & $a_font[5] & @LF & "Hex BGR Color: " & $a_font[6] & @LF & "Hex RGB Color: " & $a_font[7])
EndIf

Now what is the last thing we display in the message box?

And if you want specific Red Green Blue values from the color then google it I'm sure you will find 100 million ways.

Brett

Link to comment
Share on other sites

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]
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...