Jump to content

Recommended Posts

Posted

Here is my script 

#include <AutoItConstants.au3>

While 1
    $Variable = PixelSearch(878, 599, 880, 600, 0x850505)
    If IsArray($Variable) = True Then
        MouseClick("Left", $Variable[0], $Variable[1], 1)
        Sleep(2500)
    Else
        $Variable = PixelSearch(720, 580, 1100, 840, 0xEECCBB, 2)
        If IsArray($Variable) = True Then
            MouseClick("Left", $Variable[0], $Variable[1], 1)
            Sleep(5000)
            MouseClick("Left", 1129, 885, 1)
            Sleep(2500)
            MouseClick("Left", 1129, 885, 1)
                Local $iColor = 0
                Do
                    Sleep(10000)
                    Local $iColor = PixelGetColor(1059, 975)
                Until $iColor = 0xD4F8FF
                    MouseClick("Left", 961, 954, 1)
                        Do
                           Sleep(2500)
                           MouseClick("Left", 961, 954, 1)
                           Local $iColor = PixelGetColor(1172, 976)
                        Until $iColor = 0xFFFFFF
                           Sleep(5000)
                           MouseClick("Left", 1172, 976, 1)
                           Sleep(2500)
        Else
            $Variable = PixelSearch(720, 580, 1100, 840, 0xFF6300)
            If IsArray($Variable) = True Then
                MouseClick("Left", $Variable[0], $Variable[1], 1)
                MouseClick("Left", 960, 274, 1)
            Else
                MouseClick("Left", 1284, 597, 1)
                Sleep(2500)
            EndIf
        EndIf
    EndIf
WEnd

And I want to search for like 6 different colors in line 9 "$Variable = PixelSearch(720, 580, 1100, 840, 0xEECCBB, 2)" since the colors I am looking for are not really similar, I do not know what to do, it would be great if someone could help me. 

  • 3 weeks later...
Posted

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