Jump to content

Need help with Color


Recommended Posts

I'm trying to figure out what the color white and orange are in code.

example: 0xE0FFFF

^^^^^^^^^^^^

should look like this.

Or if anyone knows where i can see all the colors so i can find myself that would be great.

You can use this script to get the color in red blue gree hex and decimal... move the mouse over the color you like hit the f1 key and a window will appear with what you want...

HotKeySet("{end}", "Terminate")
HotKeySet("{f1}", "Pixs")

While 1
    Sleep(100)
WEnd

Func Terminate()
    Exit 0
EndFunc

Func Pixs()
$pos = MouseGetPos()

$pixie = PixelGetColor( $pos[0], $pos[1])
$color=Hex($pixie, 6)
$red = StringMid($color, 1, 2)
$green = StringMid($color, 3, 2)
$blue = StringMid($color, 5, 2)
$r = Dec($red)
$g = Dec($green)
$b = Dec($blue)
if $pos[0] > @DesktopWidth - 210 then $pos[0] = @DesktopWidth -210
if $pos[1] > @DesktopHeight - 70 then $pos[1] = @DesktopHeight -70
if $pos[0] = @DesktopWidth -210 and $pos[1] = @DesktopHeight - 70 then
$pos[0] = @DesktopWidth -215 *2
$pos[1] = @DesktopHeight -75 *2
endif
SplashTextOn ( "Color Checker","Red ("&$r &") Green ("&$g &") Blue ("&$b & ")"&@CRLF &"Hex---> " & $color &@CRLF &"Dec---> " &$pixie, 195, 55,$pos[0] +15 ,$pos[1] +15, 5, "Tahoma",10)
EndFunc
Link to comment
Share on other sites

Ok I'm having a problem, for some reason when i use $target = 0xFFFFFF for white it doesn't target the color white but when i use $Target = 0x5B9600 witch isn't even on the color chart is able to target green. Anyone know whats goin' on here?

Link to comment
Share on other sites

You can use this script to get the color in red blue gree hex and decimal... move the mouse over the color you like hit the f1 key and a window will appear with what you want...

HotKeySet("{end}", "Terminate")
HotKeySet("{f1}", "Pixs")

While 1
    Sleep(100)
WEnd

Func Terminate()
    Exit 0
EndFunc

Func Pixs()
$pos = MouseGetPos()

$pixie = PixelGetColor( $pos[0], $pos[1])
$color=Hex($pixie, 6)
$red = StringMid($color, 1, 2)
$green = StringMid($color, 3, 2)
$blue = StringMid($color, 5, 2)
$r = Dec($red)
$g = Dec($green)
$b = Dec($blue)
if $pos[0] > @DesktopWidth - 210 then $pos[0] = @DesktopWidth -210
if $pos[1] > @DesktopHeight - 70 then $pos[1] = @DesktopHeight -70
if $pos[0] = @DesktopWidth -210 and $pos[1] = @DesktopHeight - 70 then
$pos[0] = @DesktopWidth -215 *2
$pos[1] = @DesktopHeight -75 *2
endif
SplashTextOn ( "Color Checker","Red ("&$r &") Green ("&$g &") Blue ("&$b & ")"&@CRLF &"Hex---> " & $color &@CRLF &"Dec---> " &$pixie, 195, 55,$pos[0] +15 ,$pos[1] +15, 5, "Tahoma",10)
EndFunc
didn't refresh before posting so i didn't see this, thank you.
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...