Jump to content

Recommended Posts

Posted

hey all ive searched help and the forums but i cant find a way to block just the mouse. Block

input wont work. i need the keyboard. is there a way to maybe just block clicks?

thanks in advance

Posted

...is there a way to maybe just block clicks?

Search the forum for mousehook examples. You can preform the logic you want there, like checking if the mouse coordinates are over a specific window or region and handle accordingly. By returning non-zero value from the hook procedure you're telling the system to skip the rest of the hook chain and thus blocking the event from passing to the rest of the windows in the system. One thing I've noted about hooks is that the chain is handled as a stack (LIFO) so the last application to register it's procedure is the first application to get notified in the chain.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...