Jump to content

Pixelsearch an exact coordinate?


Recommended Posts

How do I get pixelsearch to search an exact coordinate? For instance I want pixelsearch to check if coordinates 150,250 is the color 0xFFFF00 and keep looping.

I tried

While 1

PixelSearch(150,250,150,250,0xFFFF00)

If not @error Then

MsgBox(0,"","FOUND")

Exit

EndIf

wend

***EDIT: I think the code works, I just had the coordinates wrong (window vs screen coordinates)

Edited by woodyfly
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...