Gondus Posted February 23, 2007 Share Posted February 23, 2007 (edited) $enemy = PixelSearch(181, 113, 824, 644, $colorcode, 2) If Not @Error Then MouseClick("right", $enemy[0], $enemy[1], 1, 1 ) Sleep (1000) MouseClick ( "left" , $enemy[0], $enemy[1], 1, 1 ) Now everying can probably tell what this is for but anyways. The problems isnt the first mouseclick (the right one) it is the left mouse click. For some reason it wont keep the cords after it uses it on the right click or something else is happening...im not sure. I cant not simply use another pixil search to find the spot again because the object im clicking on is simply gone as soon as the right click happens. Edited February 23, 2007 by Gondus -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran Link to comment Share on other sites More sharing options...
Valuater Posted February 23, 2007 Share Posted February 23, 2007 maybe place both mouse clicks into the if - statement $enemy = PixelSearch(181, 113, 824, 644, $colorcode, 2) If Not @Error Then MouseClick("right", $enemy[0], $enemy[1], 1, 1 ) Sleep (1000) MouseClick ( "left" , $enemy[0], $enemy[1], 1, 1 ) EndIf 8) 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