Jump to content

Recommended Posts

Posted

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 :(

Posted

$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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...