Func Statuswarpa()
writelog("Начало модуля статус варпа")
proverkavstatusaclienta()
$a111 = 1
$T = 0
If $statusclienta == 1 Then
$var1 = PixelSearch($WinPos[0] + 1043, $WinPos[1] + 505, $WinPos[0] + 1277, $WinPos[1] + 741, 0xff0000)
If Not @error Then Send("{f11}")
While $a111 = 1
proverkavstatusaclienta()
writelog("STATUS="&$statusclienta&@CRLF)
If $statusclienta == 1 Then
writelog("="&_ColorGetBlue(PixelGetColor($WinPos[0] + $statuswarpaX, $WinPos[1] + $statuswarpaY))&@CRLF)
If _ColorGetBlue(PixelGetColor($WinPos[0] + $statuswarpaX, $WinPos[1] + $statuswarpaY)) > 148 Then
Sleep(2000)
If $T=40 Then
if _ColorGetBlue(PixelGetColor($WinPos[0] + $statuswarpaX + 30, $WinPos[1] + $statuswarpaY - 6)) <= 148 Then $a111 = 2
EndIf
Else
Sleep(Random(2000,3000))
if _ColorGetBlue(PixelGetColor($WinPos[0] + $statuswarpaX+26, $WinPos[1] + $statuswarpaY-5)) <=148 Then $a111 = 2
writelog("="&_ColorGetBlue(PixelGetColor($WinPos[0] + $statuswarpaX+26, $WinPos[1] + $statuswarpaY-5))&@CRLF)
EndIf
$T += 1
If $T = 600 Then
$a111 = 2
writelog("проблемы с функцией статус варпа")
EndIf
Else
$a111 = 2
EndIf
;~
WEnd
EndIf
writelog("Конец модуля статус варпа")
EndFunc ;==>Statuswarpa