xandout Posted October 28, 2009 Posted October 28, 2009 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
PsaltyDS Posted October 28, 2009 Posted October 28, 2009 I suppose you could _MouseTrap() it to a location out of the way. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Authenticity Posted October 28, 2009 Posted October 28, 2009 ...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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now