You can't pause it. But you can use system.gui.getWindow()
inside a try
- except
block to retrieve the subject window, and do the swapping in the except
clause (when the window is not present).
2 Likes