MadPoet Posted April 30, 2008 Posted April 30, 2008 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?
MadPoet Posted May 1, 2008 Author Posted May 1, 2008 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?
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