Stages in processing a macro screen

During macro playback the macro runtime loops through the same three stages of activity again and again until the macro terminates, as summarized below. Notice that stage 1 has three steps within it.
  1. Determine the next macro screen to be processed.
    1. Add the names of candidate macro screens to the list of valid next screens.
    2. Do screen recognition to match one of the candidate macro screens to the actual application screen that is currently displayed in the host terminal .
    3. Remove the names of candidate macro screens from the list of valid next screens.
  2. Make the selected macro screen the new current macro screen.
  3. Perform the actions in the new current macro screen's <actions> element.