Exit screens

Marking a macro screen as an exit screen causes the macro runtime to terminate the macro after it has performed the actions for that macro screen. That is, after the macro runtime performs the actions, and before going on to screen recognition, the macro runtime looks to see if the current macro screen has the exit screen indicator set to true. If so, then the macro runtime terminates the macro. (The macro runtime ignores the <nextscreens> element of an exit screen.)

You can have any number of exit screens for a macro. Here are some examples of situations in which there could be several exit screens.
  • A macro might have one normal termination point and several abnormal termination points, which could be reached if an error occurred.
  • A macro might allow you to stop at a certain point in the processing, or to keep going, so that there would be several normal termination points.