Set IE = WScript.CreateObject("InternetExplorer.Application")
IE.Left = 50
IE.Top = 50
IE.Width = 690
IE.Height = 530
IE.Menubar = FALSE
IE.Resizable = TRUE
IE.Statusbar = FALSE
IE.Toolbar = FALSE
IE.Navigate("about:blank")
IE.Visible = TRUE
Set oDialog = IE.Document
Randomly, the script generates an error at this point
462: The remote server machine does not exist or is unavailable
I am creating the InternetExplorer.Application object on my own
system, so there is no remote system. The problem doesn't occur too
often, but once the problem starts, I can't do anything to fix it
other than rebooting or just leaving the system alone for literally a
few hours. Then the problem just goes away. Any ideas?
Set IE = WScript.CreateObject
("InternetExplorer.Application")
IE.Left = 50
IE.Top = 50
IE.Width = 690
IE.Height = 530
IE.Menubar = FALSE
IE.Resizable = TRUE
IE.Statusbar = FALSE
IE.Toolbar = FALSE
IE.Navigate("about:blank")
' Wait until loaded. Requires WSH version 5.1+
Do Until oIE.ReadyState = 4 : Wscript.Sleep 100 : Loop
'
IE.Visible = TRUE
Set oDialog = IE.Document
Tom Lavedas
===========
>.
>
Do
Loop While oIE.Busy
which did not always work either. Here is the code that works now:
Set oIE = WScript.CreateObject("InternetExplorer.Application")
Do
Loop While oIE.Busy
oIE.Left = 50
Do
Loop While oIE.Busy
oIE.Top = 50
oIE.Width = 690
Do
Loop While oIE.Busy
oIE.Height = 530
oIE.Menubar = FALSE
Do
Loop While oIE.Busy
oIE.Resizable = TRUE
oIE.Statusbar = FALSE
Do
Loop While oIE.Busy
oIE.Toolbar = FALSE
oIE.Navigate("about:blank")
Do Until oIE.ReadyState = 4 : Wscript.Sleep 100 : Loop
oIE.Visible = TRUE
As you can see, I am pausing every other line which seems pretty
ridiculous. However, it is working for now. I would appreciate any
further ideas, as I think a solution closer to yours is better than
what I am doing now....
Rick
"Tom Lavedas" <tlav...@hotmail.com> wrote in message news:<199f801c3875a$a79322b0$a601...@phx.gbl>...
Conceptually, the loop you suggest is identical to what I
provided, except that Michael Harris has suggested that
the Busy property sometimes provides unreliable results.
Sorry, I don't see the problem (or a potential solution).
I really don't think you need all of those other loops. I
certainly never have.
What OS and version of IE. Maybe someone else can shead
some light with that info.
Tom Lavedas
===========
>.
>
I think your code will work for me now. I'll let you know if I
continue to have problems.
Rick
"Tom Lavedas" <tlav...@hotmail.com> wrote in message news:<0a3201c3879d$a717dcc0$a301...@phx.gbl>...