Re: How to -> Add in for IE? Mouse Events

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 05/25/04


Date: Tue, 25 May 2004 10:36:28 -0400


"harvinder singh" <nospam@itppppps.com> wrote in message
news:c8unf6$53b$1@news.mch.sbs.de
> Thanks Igor. I also got it from one of your old post.
>
> How to get the mouse clicks and other mouse events ?

One way is to sink onmousedown and similar events from each individual
frame. Since these events bubble, you can sink them at document object
level, but you still need one sink per frame.

Alternatively, you can intercept Windows mouse messages at the message
queue, before they even reach the browser. If you have an application
that hosts WebBrowser control, just preprocess mouse messages at the
message pump. If you have a browser extension (such as a BHO) working
inside IE, install a local hook - see SetWindowsHookEx.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken