Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Действие 1
- $first = 1
- $time = $_ms + 15000
- WHILE($time > $_ms)
- GETSCREEN
- IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к1.bmp", -1, 100)
- $time = 0
- KEYUP(#A)
- WAITMS(100)
- ELSE
- IF($first)
- KEYDOWN(#A)
- $first = 0
- END_IF
- WAITMS(50)
- END_IF
- END_CYC
- IF($time ! 0)
- // время истекло, картинка не найдена
- KEYUP(#A)
- HALT
- END_IF
- // Действие 2
- $check = 0
- WHILE($check = 0)
- GETSCREEN
- IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к1.bmp", -1, 100)
- $check = 1
- KEYPRESS(#B)
- WAITMS(100)
- ELSE
- WAITMS(50)
- END_IF
- END_CYC
- $check = 0
- WHILE($check = 0)
- GETSCREEN
- IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к2.bmp", -1, 100)
- KEYPRESS(#C)
- WAITMS(300)
- ELSE
- $check = 1
- END_IF
- END_CYC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement