Jump to content

Need Help


Recommended Posts

this will return the pixel value in hex, dec and rgb of the corresponding pixel under the mouse pointer.

While -1
$position=MouseGetPos()
$var = PixelGetColor($position[0], $position[1])
$var_hex=hex($var)
$var_hex=StringTrimLeft ( $var_hex, 2)


$R= dec(StringLeft ( $var_hex, 2))
$stripped=StringTrimLeft ( $var_hex, 2)
$G= dec(StringLeft ( $stripped, 2))
$B= dec(StringRight( $stripped, 2))



sleep(10)
ToolTip($position[0]&"__"&$position[1]&@CRLF&$var &@CRLF&hex($var)&@CRLF&$R&"_"&$G&"_"&$B)
WEnd
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...