Archive: Changing window focus


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.


You could minimise the installer window with ShowWindow and then maximise it again.

-Stu