Hooking the form, onMouseMove

c++ / delphi package - dll injection and api hooking
Post Reply
xHeaps
Posts: 17
Joined: Mon Oct 18, 2004 12:21 am

Hooking the form, onMouseMove

Post by xHeaps »

Hello all.

I'm not sure if this is related to madCHook by itself, however I don't really know whom to ask.

What I want to do, is build a Magnifier glass-like application, where I would magnify the areas of the screen that my mouse is at. This I have done already -> I am able to magnify the areas (modified color-picker demo application).

My question basically is: I want to improve the application. What I want to do, is having my form moving with the mouse cursor, and the form will act as a mouse cursor on the screen.

Again, this is probably not related to madCHook, but to Windows messages, but I am really lost. Can someone help me do this?

Thanks in advance 8)
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

You can use SetWindowsHookEx to hook mouse movement system wide.
Post Reply