Func CheckErrors ()
ToolTip("Поиск ошибок...", 100, 300)
$CheckCoordError = PixelSearch ( $StartCoordX, $StartCoordY, $EndCoordX, $EndCoordY, $CheckSearchErrors )
If Not @error Then
MouseMove($CheckCoordError[0], $CheckCoordError[1])
Sleep(Random(100, 200))
MouseClick("left")
Sleep(Random(100, 200))
EndIf
EndFunc