I am working on a BHO / panel written in C # that listens for HTML events raised on the current browser web page. The solution includes a reusable class called HtmlPageEventManager, which aims to subscribe to this list of HTML events for each new web page that opens. The goal is to attach handlers as soon as the user can start interacting with page elements, even before the page has finished loading. Using this class is simple - just call the constructor:
var evts = new List () {
HtmlEvent.onclick, HtmlEvent.ondblclick, HtmlEvent.onkeydown,
HtmlEvent.onselectstart, HtmlEvent.onselectionchange,
HtmlEvent.onfocus, HtmlEvent.onselect
};
new HtmlPageEventManager (this, evts, this.HtmlEventHandler);Please upload my solution here to try it out and send me feedback. Feel free to use it in your projects if you find it useful. Although it works well, there are times when it cannot attach events. I find it difficult to determine these circumstances. Therefore, I could use some help to improve the work with the HtmlPageEventManager.
My solution refers to SpicIE , but they are not included in the above download, so you will need to get it from the SpicIE website . By the way, this is probably a good time to ask: how popular is Spicie? Any best tool to use?