Ah-ha...
I had hoped that there might be something such as a javascript-driven interface to 
access it, but it makes sense that only
*internal* structure is controlled by that.
Off to do a hunt on DDE then...

"Adam Lock" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED].;
: It is not possible to automate Mozilla with ActiveX since it has no
: automation interface and doesn't register itself.
:
: The control suggests how such support might be added, but the control
: itself is an in-process wrapper around the embedding apis and not part
: of Mozilla.exe.
:
: The current alternatives are to try and control Mozilla through its
: simple DDE interface or write an extension in XPCOM/Chrome that your app
: communicates and controls Mozilla with.
:
: Adam
:
: Alex Angelopoulos wrote:
:
: >I think I answered it myself, thanks to the material at
: >
: >http://www.iol.ie/~locka/mozilla/mozilla.htm
: >
: >There's a working example of an IE-hosted Mozilla, which I was able to easily 
:emulate in VBScript (could have been done of course
in
: >javascript, Jscript, or any other automation-capable scripting language) by using 
:IE as a *container* for Mozilla. ( see code at
: >bottom).  It can even be hosted in an HTA.
: >
: >The question I am still left with is - can Mozilla be automated in this fashion and 
:host its own window?  I am after a method of
: >externally controlling Mozilla locally.  I may be barking up the wrong tree and 
:need to talk to it via javascript, but I have no
: >clue what interface I would be trying to talk to.
: >
: ><!-- snipped -->
: ><script language="VBScript">
: >sub goMoz
: > oMoz.width = 800
: > oMoz.height= 600
: > oMoz.Visible = True
: > oMoz.Navigate "http://www.yahoo.com";
: >end sub
: > </script>
: ><!-- snipped -->
: ><BODY onload='vbscript:goMoz'>
: ><object
: >  classid="clsid:1339B54C-3453-11D2-93B9-000000000000"
: >  id="oMoz">
: ></BODY>
: ><!-- snipped -->
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >
: >"Alex Angelopoulos" <[EMAIL PROTECTED] without _ _> wrote in message 
:news:a5rmbs$[EMAIL PROTECTED].;
: >: 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