Jump to content

PixelSearch.


AzKay
 Share

Recommended Posts

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

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 by xcal
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...