Disciples Posted August 29, 2009 Posted August 29, 2009 (edited) $coord = PixelSearch( 319,303,920,509, 0x191552 ) If Not @error Then Ok, now I want it, if that is found, I want it to click on that color But idk how to make it so it clicks on a color And if It doesn't find it, I want it to just exit Any help would be greatly appreciated Edited August 29, 2009 by Disciples
mistersquirrle Posted August 29, 2009 Posted August 29, 2009 $coord = PixelSearch(319, 303, 920, 509, 0x191552) If Not @error Then MouseClick("Main", $coord[0], $coord[1]) Else Exit EndIf this'll click where the color's found at, exit if it's not We ought not to misbehave, but we should look as though we could.
Disciples Posted August 30, 2009 Author Posted August 30, 2009 $coord = PixelSearch(319, 303, 920, 509, 0x191552) If Not @error Then MouseClick("Main", $coord[0], $coord[1]) Else Exit EndIf this'll click where the color's found at, exit if it's not hmm, that doesn't seem to work>?
Belfigor Posted August 30, 2009 Posted August 30, 2009 (edited) $coord = PixelSearch(319, 303, 920, 509, 0x191552) If Not @error Then MouseClick("left", $coord[0], $coord[1],1 ,10) MsgBox(0,"","Found color here: "&$coord[0]&","&$coord[1]) Else MsgBox(0,"","There is no such color") Exit EndIf try this Edited August 30, 2009 by Belfigor [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now