Rahab Posted April 5, 2010 Share Posted April 5, 2010 Good Day, Well I was wondering if it was possible to send a click when a certain or very similar color was in 3 spots at once. I already know that it is possible when the color is in one spot but wasn't sure of 3 at the same time. So if anyone could verify that it is possible and provide some information on how it would be done I would be extremely thankful. -Rahab Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 5, 2010 Share Posted April 5, 2010 With three calls to PixelGetColor(), of course. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Rahab Posted April 5, 2010 Author Share Posted April 5, 2010 I see but is there a sample code as to which I could follow? One which would actually execute the click. Link to comment Share on other sites More sharing options...
GodlessSinner Posted April 5, 2010 Share Posted April 5, 2010 (edited) if PixelGetColor($x, $y) = PixelGetColor($x1, $y1) And PixelGetColor($x, $y) = PixelGetColor($x2, $y2) Then MouseClick("Left", $xpos, $ypos) ;ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) EndIf - You need to specify coordinations only. Edited April 5, 2010 by GodlessSinner _____________________________________________________________________________ Link to comment Share on other sites More sharing options...
Rahab Posted April 8, 2010 Author Share Posted April 8, 2010 Ok, so far it works somewhat but not in the way I need it to work. What I want to be able to do is this, I want to be able to set the color that when seen I want it to click. Does anyone know the code that would accomplish this once again any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
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