I just ran across the object model for Mozilla.Browser, and am looking at external 
automation, with no luck getting it to do
anything after the point where instantiate it. Is there a decent reference on issues 
and methods of scripting it anywhere? I suspect
my problem is something minor I am doing incorrectly since I have no real knowledge of 
the object, so I think my best starting point
is looking at references on it.

Just in case - here's my starter code below in VBScript; I am running this from a .vbs 
file.  It appears to me that I am
successfully instantiating the control but not initializing it properly.  Since 
IE-like automation is supposed to work, I am also
concerned that my problem may be a conflict between Netscape 6.2 and Mozilla 0.9.6.

FYI, I have experimented with registering both mozctl.dll and mozctlx.dll on my system 
with no success; I also have the following
system setup:

Windows XP Pro
Netscape 6.2  20011019 (apparently based on Mozilla 0.9.4?)
Mozilla  2001112009 (0.9.6)


=====================================
Set oMoz = CreateObject("Mozilla.Browser")
Do Until oMoz.ReadyState = 4
wscript.sleep 10
Loop
oMoz.Visible = True
' my loop never terminates!

'==============================
'If I do this with my loop:
Set oMoz = CreateObject("Mozilla.Browser")
Do Until oMoz.ReadyState = 4
wscript.sleep 10
wscript.echo oMoz.ReadyState
Loop
' ReadyState stays at 0

'==============================
'If I try to set .Visible at once, like this:
Set oMoz = CreateObject("Mozilla.Browser")
oMoz.Visible = True
'===================
In seconds I get an error:
 "Mozilla.Browser.1: Method called while control is uninitialized"


It appears to me that I *am* instantiating the control successfully.  It never shows 
up in my task list however.  Apparently




Reply via email to