I'm trying to manipulate Word from an HTA file application. Currently, when I open word, it opens underneath my application. I'd like to open it on top. I've tried using the following JScript to give Word the focus:
wshShell = new ActiveXObject("WScript.Shell");
wshShell.AppActivate(doc.windows.Item(1).caption);
This works, and word gets focus, but on Windows 7 it stays underneath my app. Is there something else I need to do to bring word to the top?