Jump to content
Sign in to follow this  
woodyfly

Pixelsearch an exact coordinate?

Recommended Posts

woodyfly

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

Share this post


Link to post
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
Sign in to follow this  

×