Sign in to follow this  
Followers 0
Maine

PixelSearch

3 posts in this topic

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



Anyone? i keep getting an error

Share this post


Link to post
Share on other sites

$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


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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  
Followers 0