Need help on following requirement
Code to automatically pause the script if a new window open or existing active window crashes
Scenario: We've a tool where we add server entries based on the inputs in Excel sheet. Now the requirement is whenever a new window (e.g Notepad, Browser) is opened OR the tool itself crashes, the script should Pause immediately.
The script should resume from that point again once the active window is switched to tool that I am using.
Thanks in Advance