I would like to be able to assign a key on my keyboard to be equivalent to a left mouse click.
Ideally it needs to act such that holding the key down is also equivalent to holding the left mouse button down.
I’d like this capability as a user, additionally a programmatic solution (cocoa/applescript etc) would be great too.
This can be done by writing some code:
Write a global handler to receive the type of event you want to watch
Then write the mouse click code: