Помогите новичку определиться с ошибкой
HotKeySet ('{F1}', 'start')
HotKeySet ('{F2}', 'stop')
while 1
sleep (100)
WEnd
Func start ()
While 1
$pixel = PixelSearch (428, 466, 856, 744, 0xCC0000)
If IsArray($pixel) = False Then
Send ("{2}")
EndIf
WEnd
EndFunc
Func stop ()
Exit
EndFunc
HotKeySet ('{F1}', 'start')
HotKeySet ('{F2}', 'stop')
while 1
sleep (100)
WEnd
Func start ()
While 1
$pixel = PixelSearch (428, 466, 856, 744, 0xCC0000)
If IsArray($pixel) = False Then
Send ("{2}")
EndIf
WEnd
EndFunc
Func stop ()
Exit
EndFunc