BlueM / cliclick

macOS CLI tool for emulating mouse and keyboard events
https://www.bluem.net
Other
1.59k stars 116 forks source link

Is there an equivalent to CLEARMODIFIERS in xdotool? #143

Closed heywoodlh closed 2 years ago

heywoodlh commented 2 years ago

I am trying to use a keyboard shortcut (with skhd) ctrl + [ to invoke cliclick "c:." (using skhd). It successfully executes cliclick "c:." but since I'm holding ctrl MacOS registers it as a right click.

In xdotool on Linux I can work around this using CLEARMODIFIERS. Is there anything comparable to that in cliclick?

BlueM commented 2 years ago

You could try to start with a “key up” command for ctrl: cliclick ku:ctrl. (So, together with your current command, the full command would become cliclick ku:ctrl c:.) But I have no idea whether this really works.

heywoodlh commented 2 years ago

That totally worked for me, thanks!