russell 0 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 :) Share this post Link to post Share on other sites
pieeater 1 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] Share this post Link to post Share on other sites
russell 0 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 :) Share this post Link to post Share on other sites
pieeater 1 Posted July 4, 2011 no problem [spoiler]My UDFs: Login UDF[/spoiler] Share this post Link to post Share on other sites