russell Posted July 4, 2011 Share Posted July 4, 2011 I know this is prob dumb but i run a GetPixelColor in a location and in HEX and decimal it return a different result what "Window Info" gave. the color is pure white F5F5F5 but i get like 9*** or 8D*** if in hex. Here is the code HotKeySet("{F10}", "exitNow") Func exitNow() Exit EndFunc ;==>exitNow ToolTip("F10: Exit", 0, 0) While 1 $var = PixelGetColor( 1003 , 199 ) ;ToolTip ("The decimal color is", 0,0, $var) ToolTip ("The hex color is",0,0, Hex($var, 6)) WEND Its from the help, with a kill key. I'm sure im stupid and forgot something i learned before, because i never remember having this much trouble. Can anyone give me a refresher? muppet hands are so soft :) Link to comment Share on other sites More sharing options...
pieeater Posted July 4, 2011 Share Posted July 4, 2011 it might be because of the PixelCoordMode, try this to figure out which to use: HotKeySet("{F10}", "exitNow") Func exitNow() Exit EndFunc ;==>exitNow ToolTip("F10: Exit", 0, 0) While 1 Opt("PixelCoordMode", 0) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 0", "The decimal color is " & $var) MsgBox(0, "mode : 0", "The hex color is " & Hex($var, 6)) Opt("PixelCoordMode", 1) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 1", "The decimal color is " & $var) MsgBox(0, "mode : 1", "The hex color is " & Hex($var, 6)) Opt("PixelCoordMode", 2) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 2", "The decimal color is " & $var) MsgBox(0, "mode : 2", "The hex color is " & Hex($var, 6)) WEnd [spoiler]My UDFs: Login UDF[/spoiler] Link to comment Share on other sites More sharing options...
russell Posted July 4, 2011 Author Share Posted July 4, 2011 it might be because of the PixelCoordMode, try this to figure out which to use: HotKeySet("{F10}", "exitNow") Func exitNow() Exit EndFunc ;==>exitNow ToolTip("F10: Exit", 0, 0) While 1 Opt("PixelCoordMode", 0) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 0", "The decimal color is " & $var) MsgBox(0, "mode : 0", "The hex color is " & Hex($var, 6)) Opt("PixelCoordMode", 1) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 1", "The decimal color is " & $var) MsgBox(0, "mode : 1", "The hex color is " & Hex($var, 6)) Opt("PixelCoordMode", 2) $var = PixelGetColor(1003, 199) MsgBox(0, "mode : 2", "The decimal color is " & $var) MsgBox(0, "mode : 2", "The hex color is " & Hex($var, 6)) WEnd You sir or mam win the grand prize, that helped solve the mystery. Like Scooby doo lol. Thank you very much! muppet hands are so soft :) Link to comment Share on other sites More sharing options...
pieeater Posted July 4, 2011 Share Posted July 4, 2011 no problem [spoiler]My UDFs: Login UDF[/spoiler] 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