Jump to content

PixelSearch and MouseClick help...


mafioso
 Share

Recommended Posts

I want to make some script that will do something like this:

- PixelSearch finds some Pixel that is ex. blue

- MouseClick is moving and clicking twice on that pixel (instantly)

But i don't know where to start with....can someone help me, pls ?

Link to comment
Share on other sites

  • Moderators

I want to make some script that will do something like this:

- PixelSearch finds some Pixel that is ex. blue

- MouseClick is moving and clicking twice on that pixel (instantly)

But i don't know where to start with....can someone help me, pls ?

PixelSearch has an example in the help file on how to do this, I'd suggest looking up MouseClick() and looking for the the parameter [Clicks] and [speed] to see how to do it twice fast.

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

PixelSearch has an example in the help file on how to do this, I'd suggest looking up MouseClick() and looking for the the parameter [Clicks] and [speed] to see how to do it twice fast.

tnx, i figured how to do that. But now i need something like this, and I apreciate any help:

1. If color isn't finded, then find another pixel and another color ex. there are two variables; $findpixel=PixelShearch (0,0,@desktopwidth, @desktopheight, 0x20035B) and $findpixel2=PixelShearch (0,0,@desktopwidth, @desktopheight, 0x345789)

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