Advertisement
Vintets

Павел К

Apr 5th, 2023
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.90 KB | Help | 0 0
  1. // Действие 1
  2. $first = 1
  3. $time = $_ms + 15000
  4. WHILE($time > $_ms)
  5.     GETSCREEN
  6.     IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к1.bmp", -1, 100)
  7.         $time = 0
  8.         KEYUP(#A)
  9.         WAITMS(100)
  10.     ELSE
  11.         IF($first)
  12.             KEYDOWN(#A)
  13.             $first = 0
  14.         END_IF
  15.         WAITMS(50)
  16.     END_IF
  17. END_CYC
  18. IF($time ! 0)
  19.     // время истекло, картинка не найдена
  20.     KEYUP(#A)
  21.     HALT
  22. END_IF
  23.  
  24. // Действие 2
  25. $check = 0
  26. WHILE($check = 0)
  27.     GETSCREEN
  28.     IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к1.bmp", -1, 100)
  29.         $check = 1
  30.         KEYPRESS(#B)
  31.         WAITMS(100)
  32.     ELSE
  33.         WAITMS(50)
  34.     END_IF
  35. END_CYC
  36.  
  37. $check = 0
  38. WHILE($check = 0)
  39.     GETSCREEN
  40.     IF_PICTURE_IN(0,0, $_xmax,$_ymax, "к2.bmp", -1, 100)        
  41.         KEYPRESS(#C)
  42.         WAITMS(300)
  43.     ELSE
  44.         $check = 1
  45.     END_IF
  46. END_CYC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement