Jump to content

Recommended Posts

Posted (edited)

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...