Sign in to follow this  
Followers 0
Garrett19212

Pixelsearch

4 posts in this topic

Iv fooled around with the pixelsearch, but i cant get it to do what i want.

How can i pixel search, X:26 Y:81

For the pixel 0x191510

PixelSearch( 0,0, 26, 81, 0x191510, 10 )

That "worked" but not right, it continued even though that spot wasn't that color within 10 shades.

PixelSearch( 0,0, 26, 81, 0x191510, 10 )
If not @error Then 
Send("{M}")
sleep(300)
mouseclick("left", 34, 589, 1)
Endif

It sent M, and clicked there.

Even though that color wasn't in that spot.

Share this post


Link to post
Share on other sites



I posted this earlier:

Specific Coord & Color

$color = PixelGetColor(26, 81)

If $color == 0x191510 Then
;your script here
Endif

or

PixelSearch(26, 81, 26, 81, 0x191510)
If Not @error Then
;your script here
Endif

Hope it helps!


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.

Share this post


Link to post
Share on other sites

Thx, works.

Share this post


Link to post
Share on other sites

Great!! Glad I could help.


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.

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