Jump to content

When pixel color changes do...


Recommended Posts

Hi all,

I'm a newbie as you see. I'm trying to use autoit to execute the following action:

Check continuously the color of a pixel, as soon as it changes execute a mouseclick for example.

The loop should be executed several times a second.

Pretty basic I think, but I'm loosing a lot of time trying to make it succeed.

Thanks for any help!

Kulisha

Link to comment
Share on other sites

  • Moderators

Hi all,

I'm a newbie as you see. I'm trying to use autoit to execute the following action:

Check continuously the color of a pixel, as soon as it changes execute a mouseclick for example.

The loop should be executed several times a second.

Pretty basic I think, but I'm loosing a lot of time trying to make it succeed.

Thanks for any help!

Kulisha

$Color = 0xFFFFFF ; or whatever the color is
While $Color = 0xFFFFFF
    $Color = PixelGetColor($xCoord, $yCoord)
    Sleep(10)
WEnd
MouseClick(button, x, y, times, speed)
Anymore help than that you'll need to post what you've done that has waisted your time.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...