Sign in to follow this  
Followers 0
mafioso

PixelSearch and MouseClick help...

3 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



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.

[center]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.[/center]

Share this post


Link to post
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)

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  
Followers 0