Toggle mousedown & mouseup

Hello everyone! :slight_smile:

I use a 2 finger tap for "Left Mouse Button down" because I don't like the default macos drag & drop options (1 finger, 3 finger). I have a 2 finger click for "Left Mouse Button up".

What I would prefer is to use the same gesture (2 finger tap) for both mousedown and mouseup. That should be a conditional statement but i can't figure it out how to do it.

Any suggestion? Btw sorry for my bad english...

Best regards

This is not easy but it can be done using Apple script and named triggers.

So first you'd create two named triggers in the "Other tab" in BetterTouchTool. One for mouse up and one for mouse down:

Then you'd assign a "Run Apple Script" action to the two finger tap:

And use this Apple Script:

tell application "BetterTouchTool"
	set clickState to get_number_variable "ClickState"
	if clickState is 0 then
		set_number_variable "ClickState" to 1
		trigger_named_async_without_response "mouse_down"
		
	else
		set_number_variable "ClickState" to 0
		trigger_named_async_without_response "mouse_up"
	end if
end tell

4 Likes

I registered just to say thank you.
Didn't think I was gonna find that one.

Can't believe I found it out!
This method is so awesome!