Jump to content

Recommended Posts

Posted

I am writing a program to help test a game. For one part, I want to click the mouse when a moving line hits a certain spot. What I have now is:

Func Foo()
While $color< 6500000
    $color = PixelGetColor($x,$y)
WEnd
MouseClick("left")
MsgBox(0,"Testing","Clicked!")
EndFunc

This works, but the response time is inconsistent, so I can't get the accuracy I need. Any ideas on how I can do this so that it is a little more accurate?

Posted

Guess not... I can't really see any way to do it faster either... if I knew the exact delay, I could do it off a timer, but I'm pretty sure we're adding a random pause to defeat that.

Is there a way to raise the priority of the script so that it refreshes more often, maybe?

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
×
×
  • Create New...