Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. def abort(slot=-1):
  2.     if 1 <= slot <= 8:
  3.         open_slot_busy(slot)
  4.  
  5.     if not sleep_until(button_abort.exists):
  6.         return False
  7.  
  8.     button_abort.do_action()
  9.  
  10.     if not sleep_until(button_ok_confirm.exists):
  11.         return False
  12.  
  13.     button_ok_confirm.do_action()
  14.  
  15.     if not sleep_until(button_ok_aborted.exists):
  16.         return False
  17.  
  18.     button_ok_aborted.do_action()
  19.  
  20.     return sleep_until(button_first_collect.exists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement