Jump to content
Sign in to follow this  
Maine

PixelSearch

Recommended Posts

Maine

I am a bit confused on how this works.....

i wanted to simply search my desktop for a color then once it has found the color left click but i cannot seem to get it, can someone help me :(

Share this post


Link to post
Share on other sites
Maine

Anyone? i keep getting an error

Share this post


Link to post
Share on other sites
buzz44

$Coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
    MsgBox(0, "X and Y are:", $Coord[0] & "," & $Coord[1])
EndIf

I answered this in another topic, but never the less I think it might be the same problem.

$Coord[0] and $Coord[1] will only exist if the colour is found. Thats why it checks if there wasn't an error. Check the above and then compare it to your code. Hope it helps.

Burrup


qq

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  

×