How to wait for a handler

Is this possible? Does a ordinary handler return a "success" or "failure" which can be used for a "wait while the handler is not done"?

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    You can return any value that you want to from a handler, but it's not necessary to wait for a handler to complete, or more to the point, it's impossible to not wait for a handler to complete. When you call a handler, nothing in the calling script will be executed until the handler completes and the execution stream returns to the calling script. If you need to ensure that the last action in the handler produced the desired outcome, just end it with a WaitFor or Repeat Until or a similar construction so that control doesn't return to the calling script until the action has been verified.
  • Hmm, yes, I understand.
Sign In or Register to comment.