Hi, You are trying to access XPCOM objects through the process boundaries and that is not supported (yet) by XPCOM. There is some experimintal code available in the CVS releases. It is an extension to the IPC code and will only be build if the environment variable BUILD_DCONNECT is set.
So the answer to your question: it is not possible to access an XPCOM object from an existing instance of Mozilla, but there are possibility to embed Mozilla into your own application. This allows you to gain access to the XPCOM objects, because it runs inside your own application. I am not familiar with embedded Mozilla, so I am not able to tell you if you can access to properties of the embedded Mozilla, but I think that the DOM support can help you... -Frank Robert wrote: > > Hi > > I'm aware that a similar question has been asked here before, but the > answer to that was "Use DDE". Unfortunately, in my case, this won't > work, so I'm pretty sure I must use XPCOM. > > I am currently developing a form fill application (which automatically > fills in HTML forms with data such as name, address, tel. number etc.) > for Win32. With Internet Explorer, the program is able to do this by > using COM. I would like to add Mozilla support to the app, but at the > moment I am not even sure if this can be done with XPCOM. The > individual operations which the program needs to perform are (in > approximate order of difficulty ;) : > > * Get the handle of an XPCOM object representing the page currently > displayed from the window handle of a pre-existing Mozilla window. > * Read the HTML source code of the page (for parsing). > * If frames are present, enumerate these frames and get the source > code for each individual frame. > * Read the loading status of a page (loading/complete). > * Enumerate the HTML forms present on a page and the input fields > (text input, radiobuttons, drop-down boxes etc.) of these forms. > * Read and modify the values of above-mentioned input fields. > * React to events such as navigation or submitting a form. > > Any help would be greatly appreciated. If there is some example source > code available, it would be appreciated even more :) It would even be > helpful if you could simply tell me whether this can be done using > XPCOM or not. > > Thanks in advance, > Robert -- -0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 Frank Wiegerinck OCE Research & Development mailto: [EMAIL PROTECTED] Tel: +31 77 359 3198 Fax: +31 77 359 5337 Address: OCE Technologies/PO BOX 101/5900 MA Venlo/The Netherlands ------------------------------------------------------------------ This note does not necessarily represent the position of Oce Technologies B.V. Therefore no liability or responsibility for whatever will be accepted. ------------------------------------------------------------------ _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
