#ps2_keyboard
$check = 0
WHILE($check = 0)
GETSCREEN (790, 365, 1110, 390)
COLORMODE(6, 790, 365, 1110, 390)
FOR($i = 11, ($i < 13) & ($check = 0))
IF_PICTURE_IN (790, 365, 1110, 390, STRCONCAT("Image_",$i,".bmp"), -1, 60) //если Image_11.bmp не находиться искать Image_12.bmp
$check = 1
KEYPRESS(#L)
waitms(400)
KEYPRESS(#K)
waitms(1500)
KEYPRESS(#S)
waitms(400)
KEYPRESS(#S)
waitms(400)
KEYPRESS(#S)
waitms(400)
KEYPRESS(#S)
waitms(400)
KEYPRESS(#K)
waitms(400)
FOR($a=0,$a<$n)
KEYPRESS(#S)
WAITMS(50)
END_CYC
waitms(400)
KEYPRESS(#K)
waitms(400)
KEYPRESS(#K)
waitms(1500)
KEYPRESS(#K)
WAITMS(100)
ELSE
WAITMS(100)
END_IF
END_CYC
END_CYC
inc($n,1)