Sign in to follow this  
Followers 0
Gondus

Little trouble keeping my variables

2 posts in this topic

#1 ·  Posted (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 by Gondus

-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

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