Hi all,

I am trying to write an XPCOM dll which will monitor mouse events in a 
browser window.
However do to the fact that i am completely new to XPCOM (and not familiar 
with COM either, so this field is abit of mystery to me) i would appreciate 
some help on this.

At the moment i successfully wrote a C++ component skeleton which provides 
my own interface and works well. The method i provide successfully called 
from a javascript.
Now I am trying to convert following code, but have no idea how to do this.

 function myfunct(mc_event) {
 }

 function init() {
 getBrowser().addEventListener("click", myfunct, true);
 }

 window.addEventListener("load", init, true);

Does anyone has working example of this or could point me to a right 
direction?
Also I would appreciate any link to tutorials or examples on the subject.

P.S. sorry for my bad english.. 


_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to