qwertylol Posted May 20, 2007 Share Posted May 20, 2007 how do I get the values in hex? Link to comment Share on other sites More sharing options...
qwertylol Posted May 20, 2007 Author Share Posted May 20, 2007 how do I get the values in hex?and, how do I express the value return by pixelgetcolor by the R, G, b? Link to comment Share on other sites More sharing options...
Zedna Posted May 20, 2007 Share Posted May 20, 2007 Don't double posts!and look here Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
qwertylol Posted May 20, 2007 Author Share Posted May 20, 2007 the other post doesn't have a solution to how to express the number returned in 3 numbers Link to comment Share on other sites More sharing options...
Gif Posted May 20, 2007 Share Posted May 20, 2007 (edited) Firstly :_StringToHex() and _HexToString() then look at functions and au3Lib for infos... Edited May 20, 2007 by c4nm7 Link to comment Share on other sites More sharing options...
qwertylol Posted May 20, 2007 Author Share Posted May 20, 2007 i tried to look in autolib, please tell me which function in the lib is what I need thank you ! Link to comment Share on other sites More sharing options...
qwertylol Posted May 20, 2007 Author Share Posted May 20, 2007 ;Dim $pic = PixelGetColor ( 17, 387 ) ;MsgBox (0, "title", $pic ) #include <String.au3> Dim $origin_x = 11 Dim $origin_y = 680 Dim $x_offset = 0 Dim $y_offset = 0 Dim $target_pixel = PixelGetColor ( ($origin_x + $x_offset ),($origin_y + $y_offset )) MsgBox (0, "title", $target_pixel ) $target_pixel = _StringToHex($target_pixel ) MsgBox (0, "title", $target_pixel ) this is not a hex Link to comment Share on other sites More sharing options...
Zedna Posted May 20, 2007 Share Posted May 20, 2007 (edited) Look at my get_color.au3 project.It's in my signature.EDIT:mainlyFunc ZjistiBarvy() $pos = MouseGetPos() $color = PixelGetColor($pos[0], $pos[1]) $color_txt = StringFormat('%03i %03i %03i', _ColorGetRed($Color), _ColorGetGreen($Color), _ColorGetBlue($Color)) $color_hex = "0x" & Hex($color, 6) Return $color_hex & @CRLF & $color_txt & @CRLF & $color EndFunc Edited May 20, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
qwertylol Posted May 20, 2007 Author Share Posted May 20, 2007 _ColorGetRed($Color), _ColorGetGreen($Color), _ColorGetBlue($Color) I think these three functions will do for me; how do I find color.au3 ? Link to comment Share on other sites More sharing options...
BrettF Posted May 20, 2007 Share Posted May 20, 2007 _ColorGetRed($Color), _ColorGetGreen($Color), _ColorGetBlue($Color)I think these three functions will do for me; how do I find color.au3 ?Its in the include dir of the autoit install??? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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