
Message Popup while a line of code is executing
When you use IE as a COM server, you can start it any explicit size you want other than maximized or minimized. You can cheat and use a WScript.Shell object and the AppActivate and Sendkeys methods to ensure that it has the focus and send the keystrokes to minimize it (all after it's visible). It'll flash on screen, but there isn't any other way that I know of...
--
Michael Harris
MVP - Windows Script
Is this a way to make this IE window start minimized?
TIA
Greg
set ie = createobject("internetexplorer.application")
ie.menubar = 0
ie.toolbar = 0
ie.statusbar = 0
ie.resizable = 0
ie.navigate "about:<span id=msg style='font:10pt verdana'></span>"
while ie.busy:wend
wsh.sleep 100
set doc = ie.document
doc.parentWindow.resizeto 350,75
doc.title = wscript.scriptname
ie.visible = 1
for n = 1 to 10
'just in case user killed the ie window...
if typename(doc) <> "Object" then
doc.all.msg.innerhtml = "The time is <b><i>" & time() & "</i></b>"
end if
'fake some work...
wsh.sleep 1000
next
'just in case user killed the ie window...
on error resume next
ie.quit
on error goto 0
msgbox "all done..."
--
Michael Harris
MVP - Windows Script
Is there a way to make a message popup on the screen while a line of code is
executing and then go away when it is finished?
I am writing a script to download some files via ftp and want to inform the
user that something is going on in the background so they don't panic.
Thanks for the help.
Bob