Sign in to follow this  
Followers 0
xandout

block mouse only BlockInput wont do this.

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
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
Sign in to follow this  
Followers 0