Jump to content
Sign in to follow this  

Improving response time

Recommended Posts

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)

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?

Share this post

Link to post
Share on other sites

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?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...