Jump to content
Sign in to follow this  
Rydextillxixdiex

Clicking on Detected Pixels

Recommended Posts

Rydextillxixdiex

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 :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.