Focusing on a WScript IE explorer window
Posted on 2003-11-11
I'm not very familiar with VBScript, in fact this is my first day dealing with it. I'm basing most of the script off of an earlier version. Basically all the program does is open an IE window (via WScript) load the HTML, then send the information from the form to a perl script. That is all working fine, but I can't get the Script to focus on the IE window, so it opens behind everything else. I've looked all over the place and can't seem to find anything that will help, so I am giving in and asking people.
The code I have involving the window is
set oIE = WScript.CreateObject("InternetExplorer.Application", IE_)
|| Code defining the window size, etc
oIE.navigate pathe & "LMP_Form.htm"
oIE.visible = 1