Jump to content

block mouse only BlockInput wont do this.


xandout
 Share

Recommended Posts

...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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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