HotKeySet("{esc}",close)
Func close()
Exit
EndFunc
Dim $con[5],$Result[36]
$con[0] = 0x29261A
$con[1] = 0xFF0020
$con[2] = 0xFFFF2C
$con[3] = 0x00700D
$con[4] = 0xDFDFDE
While 1
$Result[0]=PixResult(620,270,660,305,$con)
$Result[1]=PixResult(660,270,700,305,$con)
$Result[2]=PixResult(700,270,740,305,$con)
$Result[3]=PixResult(740,270,780,305,$con)
$Result[4]=PixResult(780,270,820,305,$con)
$Result[5]=PixResult(820,270,860,305,$con)
$Result[6] = PixResult(620,310,660,350,$con)
$Result[7] = PixResult(660,310,700,350,$con)
$Result[8] = PixResult(700,310,740,350,$con)
$Result[9] = PixResult(740,310,780,350,$con)
$Result[10] = PixResult(780,310,820,350,$con)
$Result[11] = PixResult(820,310,860,350,$con)
$Result[12] = PixResult(620,350,660,395,$con)
$Result[13] = PixResult(660,350,700,395,$con)
$Result[14] = PixResult(700,350,740,395,$con)
$Result[15] = PixResult(740,350,780,395,$con)
$Result[16] = PixResult(780,350,820,395,$con)
$Result[17] = PixResult(820,350,860,395,$con)
$Result[18] = PixResult(620,390,660,440,$con)
$Result[19] = PixResult(660,390,700,440,$con)
$Result[20] = PixResult(700,390,740,440,$con)
$Result[21] = PixResult(740,390,780,440,$con)
$Result[22] = PixResult(780,390,820,440,$con)
$Result[23] = PixResult(820,390,860,440,$con)
$Result[24] = PixResult(620,430,660,485,$con)
$Result[25] = PixResult(660,430,700,485,$con)
$Result[26] = PixResult(700,430,740,485,$con)
$Result[27] = PixResult(740,430,780,485,$con)
$Result[28] = PixResult(780,430,820,485,$con)
$Result[29] = PixResult(820,430,860,485,$con)
$Result[30] = PixResult(620,470,660,530,$con)
$Result[31] = PixResult(660,470,700,530,$con)
$Result[32] = PixResult(700,470,740,530,$con)
$Result[33] = PixResult(740,470,780,530,$con)
$Result[34] = PixResult(780,470,820,530,$con)
$Result[35] = PixResult(820,470,860,530,$con)
$va = PixelSearch(622, 220,648, 246,0x304F13,2)
If Not @error Then
line1()
EndIf
Sleep(100)
WEnd
Func line1()
If $result[6] = $result[13] And $result[13] = $result[18] Then
MouseClick("left",680,370)
MouseClick("left",640,370)
Else
If $result[7] = $result[12] And $result[12] = $result[19] Then
MouseClick("left",680,370)
MouseClick("left",640,370)
Else
If $result[8] = $result[13] And $result[13] = $result[20] Then
MouseClick("left",680,370)
MouseClick("left",720,370)
Else
If $result[7] = $result[14] And $result[14] = $result[19] Then
MouseClick("left",680,370)
MouseClick("left",720,370)
Else
If $result[8] = $result[15] And $result[15] = $result[20] Then
MouseClick("left",720,370)
MouseClick("left",760,370)
Else
If $result[9] = $result[14] And $result[14] = $result[21] Then
MouseClick("left",720,370)
MouseClick("left",760,370)
Else
If $result[9] = $result[16] And $result[16] = $result[21] Then
MouseClick("left",760,370)
MouseClick("left",800,370)
Else
If $result[10] = $result[15] And $result[15] = $result[22] Then
MouseClick("left",760,370)
MouseClick("left",800,370)
Else
If $result[10] = $result[17] And $result[17] = $result[22] Then
MouseClick("left",800,370)
MouseClick("left",840,370)
Else
If $result[11] = $result[16] And $result[16] = $result[23] Then
MouseClick("left",800,370)
MouseClick("left",840,370)
Else
If $result[12] = $result[19] And $result[19] = $result[24] Then
MouseClick("left",640,410)
MouseClick("left",680,410)
Else
If $result[13] = $result[18] And $result[18] = $result[25] Then
MouseClick("left",680,410)
MouseClick("left",640,410)
Else
If $result[13] = $result[20] And $result[20] = $result[25] Then
MouseClick("left",720,410)
MouseClick("left",680,410)
Else
If $result[14] = $result[19] And $result[19] = $result[26] Then
MouseClick("left",720,410)
MouseClick("left",680,410)
Else
If $result[15] = $result[20] And $result[20] = $result[27] Then
MouseClick("left",720,410)
MouseClick("left",760,410)
Else
If $result[14] = $result[21] And $result[21] = $result[27] Then
MouseClick("left",720,410)
MouseClick("left",760,410)
Else
If $result[16] = $result[21] And $result[21] = $result[28] Then
MouseClick("left",760,410)
MouseClick("left",800,410)
Else
If $result[15] = $result[22] And $result[22] = $result[27] Then
MouseClick("left",760,410)
MouseClick("left",800,410)
Else
If $result[16] = $result[23] And $result[23] = $result[28] Then
MouseClick("left",800,410)
MouseClick("left",840,410)
Else
If $result[17] = $result[22] And $result[22] = $result[29] Then
MouseClick("left",800,410)
MouseClick("left",800,410)
Else
If $result[18] = $result[25] And $result[25] = $result[30] Then
MouseClick("left",640,450)
MouseClick("left",680,450)
Else
If $result[19] = $result[24] And $result[24] = $result[31] Then
MouseClick("left",640,450)
MouseClick("left",680,450)
Else
If $result[19] = $result[26] And $result[26] = $result[31] Then
MouseClick("left",720,450)
MouseClick("left",680,450)
Else
If $result[20] = $result[25] And $result[25] = $result[32] Then
MouseClick("left",720,450)
MouseClick("left",680,450)
Else
If $result[20] = $result[27] And $result[27] = $result[32] Then
MouseClick("left",720,450)
MouseClick("left",760,450)
Else
If $result[21] = $result[26] And $result[26] = $result[33] Then
MouseClick("left",720,450)
MouseClick("left",760,450)
Else
If $result[21] = $result[28] And $result[28] = $result[33] Then
MouseClick("left",760,450)
MouseClick("left",800,450)
Else
If $result[22] = $result[27] And $result[27] = $result[34] Then
MouseClick("left",760,450)
MouseClick("left",800,450)
Else
If $result[22] = $result[29] And $result[29] = $result[35] Then
MouseClick("left",800,450)
MouseClick("left",840,450)
Else
If $result[23] = $result[28] And $result[28] = $result[35] Then
MouseClick("left",800,450)
MouseClick("left",840,450)
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
Sleep(100)
EndFunc
func PixResult($x1,$y1,$x2,$y2,$col)
Local $result = -1
for $i = 0 to UBound($col) - 1 ; перебираем все цвета
PixelSearch($x1,$y1,$x2,$y2,$con[$i]) ; ищем цвет
if NOT @error Then ; если цвет обнаружен
$result = $i ; назначаем номер обнаруженного цвета
ExitLoop ; выходим из цикла
EndIf
Next
Return $result ; возвращаем номер обнаруженного цвета, если ни чего не нашел, то -1
endfunc