Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blocking Mouse Clicks but not Mouse Movement
#1
Hi,
I currently have some applications functions in a drawing program that I only want to work when I press a key down and turned off when the key is lifted. (This way, I don't have to go back and forth to a menu to keep on switching back to neutral). Left clicking is messing this up, even though I need mouse movement to be captured to guide the specific application function.
I have it working just fine unless a mouse click is depressed before the key is lifted.

Is there anyway this can be done with BlockInput2 (or is this a feature for BockInput3?)

Thanks again,
Stuart
#2
To eat only a certain mouse button but not movement:

1. Make sure you can disable QM using a hotkey. Default hotkey is Ctrl+Alt+Shift+D.
2. Create an empty function and assign this (new) filter function:

Code:
Copy      Help
;/
function# iid FILTER&f

int+ g_eatclick
if(g_eatclick) ret -1 ;;eat

3. Create function ResetEatClick:

Code:
Copy      Help
int+ g_eatclick
g_eatclick=0

4. In the macro, insert this at the beginning:

Code:
Copy      Help
int+ g_eatclick
atend ResetEatClick

5. Set g_eatclick to 1 when the mouse button must be blocked. Set it to 0 to unblock. Example:

Code:
Copy      Help
g_eatclick=1
wait 10
g_eatclick=0
#3
Thanks Gintaras!
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)