I'm not sure why, but that code does not maximize the original application for me. It does kill the second instance though.

Thanks for the code. I'll keep experimenting with it.