Func _CoordX()
Dim $X1 = 938
Dim $X2 = 945
Dim $x = 0
Dim $number1 = 0
Dim $number2 = 0
;----------------- $number2 -----------------
;-------------------- 1 ---------------------
$x = $X1
;Local $x = 945
$x = $x + 3 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,174,$x,174,0xFFFFFF)
If Not @error Then
PixelSearch($x,176,$x,176,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number1 = 1
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 2 ---------------------
$x = $X1 + 1
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number1 = 2
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 3 ---------------------
$x = $X1 + 5
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number1 = 3
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
;-------------------- 4 ---------------------
$x = $X1 + 4
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
$x = $x - 1 ; $x = 948
PixelSearch($x,178,$x,178,0xFFFFFF)
If @error Then
$number1 = 4
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
;-------------------- 5 ---------------------
$x = $X1 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x + 1 ; $x = 949
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$number1 = 5
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 6 ---------------------
$x = $X1 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number1 = 6
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
;-------------------- 7 ---------------------
$x = $X1 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$number1 = 7
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 8 ---------------------
$x = $X1 + 1
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number1 = 8
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 9 ---------------------
$x = $X1 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number1 = 9
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;----------------- $number2 -----------------
;-------------------- 1 ---------------------
$x = $X2 + 3 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,174,$x,174,0xFFFFFF)
If Not @error Then
PixelSearch($x,176,$x,176,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number2 = 1
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 2 ---------------------
$x = $X2 + 1
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number2 = 2
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 3 ---------------------
$x = $X2 + 5
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number2 = 3
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
;-------------------- 4 ---------------------
$x = $X2 + 4
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
$x = $x - 1 ; $x = 948
PixelSearch($x,178,$x,178,0xFFFFFF)
If @error Then
$number2 = 4
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
;-------------------- 5 ---------------------
$x = $X2 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x + 1 ; $x = 949
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$number2 = 5
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 6 ---------------------
$x = $X2 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number2 = 6
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
;-------------------- 7 ---------------------
$x = $X2 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$number2 = 7
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 8 ---------------------
$x = $X2 + 1
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number2 = 8
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 9 ---------------------
$x = $X2 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number2 = 9
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
Return ($number1 & $number2)
EndFunc
Func _CoordY()
Dim $X3 = 966
Dim $X4 = 973
Dim $x = 0
Dim $number3 = 0
Dim $number4 = 0
;----------------- $number3 -----------------
;-------------------- 1 ---------------------
$x = $X3
;Local $x = 945
$x = $x + 3 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,174,$x,174,0xFFFFFF)
If Not @error Then
PixelSearch($x,176,$x,176,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number3 = 1
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 2 ---------------------
$x = $X3 + 1
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number3 = 2
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 3 ---------------------
$x = $X3 + 5
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number3 = 3
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
;-------------------- 4 ---------------------
$x = $X3 + 4
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
$x = $x - 1 ; $x = 948
PixelSearch($x,178,$x,178,0xFFFFFF)
If @error Then
$number3 = 4
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
;-------------------- 5 ---------------------
$x = $X3 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x + 1 ; $x = 949
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$number3 = 5
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 6 ---------------------
$x = $X3 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number3 = 6
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
;-------------------- 7 ---------------------
$x = $X3 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$number3 = 7
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 8 ---------------------
$x = $X3 + 1
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number3 = 8
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 9 ---------------------
$x = $X3 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number3 = 9
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;----------------- $number4 -----------------
;-------------------- 1 ---------------------
$x = $X4 + 3 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,174,$x,174,0xFFFFFF)
If Not @error Then
PixelSearch($x,176,$x,176,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number4 = 1
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 2 ---------------------
$x = $X4 + 1
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number4 = 2
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 3 ---------------------
$x = $X4 + 5
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,172,$x,172,0xFFFFFF)
If Not @error Then
PixelSearch($x,178,$x,178,0xFFFFFF)
If Not @error Then
$number4 = 3
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
;-------------------- 4 ---------------------
$x = $X4 + 4
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
$x = $x - 1 ; $x = 948
PixelSearch($x,178,$x,178,0xFFFFFF)
If @error Then
$number4 = 4
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
;-------------------- 5 ---------------------
$x = $X4 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x + 1 ; $x = 949
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$number4 = 5
EndIf
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 6 ---------------------
$x = $X4 + 5
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 4 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number4 = 6
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
;-------------------- 7 ---------------------
$x = $X4 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If Not @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$number4 = 7
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 8 ---------------------
$x = $X4 + 1
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,175,$x,175,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 948
PixelSearch($x,173,$x,173,0xFFFFFF)
If @error Then
$x = $x - 2 ; $x = 946
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number4 = 8
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
;-------------------- 9 ---------------------
$x = $X4 + 1
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If @error Then
$x = $x + 4 ; $x = 950
PixelSearch($x,173,$x,173,0xFFFFFF)
If Not @error Then
PixelSearch($x,177,$x,177,0xFFFFFF)
If Not @error Then
$number4 = 9
;TrayTip('','Абракадабра $number2 = ' & $number2,0,1)
EndIf
EndIf
EndIf
EndIf
Return ($number3 & $number4)
EndFunc