Changing window focus
Hey guys,
I was hoping someone could help me. I'm writing a script that will close a program and then run the rest of itself. The closing of the program I can do, but my problem lies in the fact that the program to be closed may pop a message up asking for confirmation...
How can I change windows' focus to this program so that the popup will become visible?
Thanks in advance.