Message Popup while a line of code is executing 
Author Message
 Message Popup while a line of code is executing

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



Sat, 17 Aug 2002 03:00:00 GMT  
 Message Popup while a line of code is executing

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



Sat, 17 Aug 2002 03:00:00 GMT  
 Message Popup while a line of code is executing

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



Sun, 18 Aug 2002 03:00:00 GMT  
 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



Sun, 18 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. I am looking for a calendar popup

2. .chm files and executing code on mapped drives (via javascript coded object)

3. I am having trouble executing a .exe file on the server

4. HOW: popup message when mouse over a text link

5. Help with PopUp message on MouseOver

6. Alert Message popup over all open applications

7. Popup Message Box

8. Beep before popup message

9. Popup Messages

10. Popup Logon Message

11. Sending a popup message to a PC on the network

12. Display message while script is executing

 

 
Powered by phpBB® Forum Software