capture all mouse events

  • Thread starter Thread starter anbeyon
  • Start date Start date
A

anbeyon

Hi All,

Is there a way I can catch all mouse events. (regardless of the Form
that is on view)

Thanks

Anbeyon
 
All of the mouse events directed to your application or to any application?
You should be able to catch all mouse clicks for your application using
something like ApplicationEx and an IMessageFilter subclass. See
OpenNETCF.Org for the Smart Device Framework (SDF).

For all windows, even those owned by other applications, there's no way that
I can think of to see all of them easily. You might be able to subclass
every top-level window in the system or something, but windows hooks don't
exist for mouse I/O, unlike keyboard I/O, for which they do, on Windows CE.
It might be easier, if this is a device that you build, to add that
functionality to the mouse driver.

Paul T.
 
Regardless of the form in view of *your* application probably yes with an
IMessageFilter implementation (combined with ApplicationEx) from SDF from
opennetcf - search the archives.

For the entire device, doubtful.

Cheers
Daniel
 
Hi Paul/Daniel

Thanks for the replies......

Yes sorry I meant I forms in my application - I'll investigate
applicationex as you suggest.

Thanks

Anbeyon
 
Thanks for the help - that seems to work - I now have a timout running
that i sreset when ever a mouse event occurs. When the timer times out
my screen save poops up.

Thanks

Anbeyon
 
Back
Top