Hi guys I hope you can help me. I want my script to open a program when a specific process is closed. Say I have Notepad opened for a while, and then when I close it, another program should open, like Internet Explorer. This is what I've got so far: If Not ProcessExists("notepad.exe") Then run("C:\Program files (x86)\Internet Explorer\iexplore.exe") But I want the script to run until the "then" statement is executed, how do I do that? So the script should keep running until I have