BlueM / cliclick

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

How to get '%' (instead of '5') when shift is already pressed? #108

Closed mhofert closed 4 years ago

mhofert commented 4 years ago

Hi,

I try to trigger screen recording on macOS 10.15.6 (Catalina) by pressing 'cmd-shift-%' (or 'cmd-shift-5'). When using

cliclick kd:cmd,shift kp:num-5

all I see is that a 5 is printed to the terminal. I assume, but not sure here, that I rather want to press '%' than '5' (even if it's the same key) since shift has already been pressed. How can this be done/specified?

Thanks & cheers, M

BlueM commented 4 years ago

It should work using cliclick kd:cmd,shift t:5 (t for type).

mhofert commented 4 years ago

... and that does work, thanks! That would be a nice example to have on cliclick -h somewhere.