Jump to content
Sign in to follow this  
RandomGuest

Pixel search + Mouse move

Recommended Posts

RandomGuest

First of all, im quite new to Autoit.

$Pixel = PixelSearch ( 0, 0, 474, 176, 0x00CE00)
If @ERROR Then
Send("{2 down}")
Sleep(500)
Send("{2 up}")
Else
Send("{1 down}")
Sleep(500)
Send("{1 up}")
EndIf

So, if I want AutoIt to do another pixelsearch, it does not do anything.

How can I make it so it can first do this pixelsearch above, then it starts another pixelsearch for another color and so on?...

Edited by RandomGuest

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  

×