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
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to