$iFlagExit = 0
HotKeySet("{F6}", "_Exit")
HotKeySet("{F7}", "_ExitAfterLoopStep") ; выход после завершения текущего прохода цикла
MouseMove_Checked(640, 384, 10)
MouseClick("LEFT")
Sleep(2000)
While $iFlagExit = 0
MouseMove_Checked(450, 365, 0); 1 -
Sleep(200)
$Spec = PixelSearch(633, 381, 647, 391, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(633, 381, 647, 391, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(496, 365, 0); 2 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(551, 365, 0); 3 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(605, 365, 0); 4 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(674, 365, 0); 5 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(727, 365, 0); 6 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(779, 365, 0); 7 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(824, 365, 0); 8 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(779, 365, 0); 7 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
Opt("MouseClickDownDelay", 500)
MouseClick("RIGHT")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
Send("{Alt off}")
Sleep(2000)
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(727, 365, 0); 6 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(674, 365, 0); 5 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(605, 365, 0); 4 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(551, 365, 0); 3 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
MouseMove_Checked(496, 365, 0); 2 -
Sleep(900)
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(634, 375, 649, 403, 0x000000 )
If IsArray($Spec) = True Then
Send("{Alt on}")
MouseDown("Right")
Sleep(200)
MouseClick("LEFT")
Sleep(200)
MouseUp("Right")
Sleep(2000)
Send("{Alt off}")
EndIf
$Spec = PixelSearch(476, 304, 802, 462, 0xFFFE5F )
If IsArray($Spec) = True Then
Send("{ESC}")
Sleep(2000)
EndIf
Wend
Func MouseMove_Checked($iX, $iY, $iSpeed)
Do
MouseMove($iX, $iY, $iSpeed)
Sleep(100)
$aiXY = MouseGetPos()
Until $iX = $aiXY[0] And $iY = $aiXY[1]
EndFunc
Func _Exit()
Exit
EndFunc
Func _ExitAfterLoopStep()
$iFlagExit = 1
EndFunc