Hook mouse events

  • Thread starter Thread starter Empi
  • Start date Start date
Mouse hooking isn't supported by the operating system. What are you trying
to do (tell us *what* not *how*)?

Paul T.
 
I'm looking for the exact same thing.

For as far ive found Alex Yakhnin's hook class works on keyboard hooks
only, mouse is not supported...

What i want to do with it:
I run an application in the background with a hidden form.
The form must become visible when the user slides his finder/stylus
from the bottom of the screen to the top.
 
I can't think of any way to accomplish that without operating system
support. Generally, it's a direct violation of the idea that the user is in
control of the UI to suddenly take over from the frontmost application and
I'm sure that this scenario was not in Microsoft's mind.

Paul T.
 
Well in my case it should only work on the today screen.
Otherwise it would be annoying when you scroll in any app...

Oh well, think i'll have to do it with a notify icon then :(
 
I suppose that you could add a Today screen 'item'/applet/whatever you want
to call it. You could then have any particular gesture that you like, as
long as it started in your area of the window, do something, I think.

Paul T.
 
That might be an option.

You say it's impossible due to the OS?

But how is Remote Spy (tool in vs.net 2005) able to listen to any
message? Including the mouse messages.
For as far i know that tool, it only copies some kind of "transport
files" to the device. Probably for sending the messages back to the
PC.

The only thing i'm trying to say is, if that tool can do it, it should
be possible?
 
Yes, you can capture every event sent to every window in the system. Think
that might have a significant performance impact? I do...

Paul T.
 
Back
Top