Report Activate a Macro with Window Title only once in Macro Express and Macro Express Pro Posted November 12, 2019 If you intended to have your macro wait 15 seconds after the Bookmarks window closes you should not use Macro Stop. No macro commands, including the Delay command at the end, will run after the Macro Stop command. Instead use Break. That skips to the macro command after the End Repeat. However, in this case, neither Break nor Macro Stop is needed because setting T77 to Done will stop the repeat loop. Try something like this: // Run the macro until the window is closed. Variable Set String %T% to "Not" Repeat Until %T% Equals "Done" If Not Window "Bookmarks - Google Chrome" is running Variable Set String %T% to "Done" End If Delay: 100 milliseconds End Repeat Delay: 15 Seconds You still need some delay inside the repeat loop for the reason stated above.