Jump to content

Clicking on Detected Pixels


Recommended Posts

After preforming a pixel search in the specified region:

----------------------------------------------------------------------

PixelSearch(180, 510, 328, 550, 0x6a0706, 10)

-----------------------------------------------------------------------------------------------------------

How can i tell the script to move the mouse and click on the found pixel, if it was infact found.

This is what i have come up with, but it doesn't work :).

-----------------------------------------------------------------------------------------------------------

While 1
    $Button = PixelSearch(180, 510, 328, 550, 0x6a0706, 10)
    While @error = 0
    MouseClick("Left", $Button[0], $Button[1], 0)
    WEnd

-------------------------

Any ideas anyone?

Thanks in Advance.

-------------------------

...will never learn all there is to know about autoit, no worries...i came to the forums :)

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...