tags:

views:

46

answers:

3

I'm making a color dropper tool and while this tool is active, when the user clicks or taps I only want it to run my mouse event, not anything else,so while this tool is running,if the user clicks the start orb, it should not open the start menu (or if the user clicks anything else). How could I do this?

Thanks

+1  A: 

You could implement a system-wide mouse event hook. Hooks are described here. Depending on your hook's return value, the application underneath the cursor will or will not receive the mouse event. You may need to implement a low level mouse hook in order to catch mouse clicks. The hook function should also be provided with the screen coordinates of the mouse cursor.

dreamlax
A: 

Try SetCapture() / ReleaseCapture()

A: 

Create a screen-sized transparent window that you put on top of all other windows.

Frederik Slijkerman
LOL, nice joke, mate.
AOI Karasu