AzKay Posted August 12, 2006 Share Posted August 12, 2006 HotKeySet("^{F1}", "_PixelSearch") While 1 Sleep(100) WEnd Func _PixelSearch() $PixelSearch = PixelSearch(0, 0, 1280, 800, 0xFF0000, 255) MsgBox(0, "", $PixelSearch[0] & " " & $PixelSearch[1]) EndFunc It returns, 0 0, shouldnt it be the coordinate of the first red-shaded pixel? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
xcal Posted August 12, 2006 Share Posted August 12, 2006 (edited) Wouldn't your shade variation of 255 indicate the color could be anything from (rgb) 0, 0, 0 to 255, 255, 255? Making it always pick 0, 0 for the coord found, since the color could be anything. Edited August 12, 2006 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
AzKay Posted August 12, 2006 Author Share Posted August 12, 2006 Well, It should be searching 255 shades of red ( Thats what I thought ) # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted August 12, 2006 Author Share Posted August 12, 2006 Nevermind, Fixed. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
xcal Posted August 12, 2006 Share Posted August 12, 2006 (edited) Shade Variation: "A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour." Red is made up of 255, 0, 0. So, a variation of 0-255 for each component could be any color - and therefore the first "any" color is returned. (sorry, posting at the same time) Edited August 12, 2006 by xcal How To Ask Questions The Smart Way 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