BlueM / cliclick

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

Cmd+H not working #145

Closed leoheck closed 2 years ago

leoheck commented 2 years ago

Hi, I am trying to hide the application that is on top, but it seems that the Cmd+H is not working

This is what I am trying to do:

cliclick kd:cmd kp:q

Is this right?

BlueM commented 2 years ago

Running command kp:q results in Invalid key “q” given as argument to command “kp” …, so this is obviously not correct. For simple characters, you have to use the “type” (t) command:

cliclick kd:cmd t:h ku:cmd

leoheck commented 2 years ago

Ah got it, I was thinking, somehow, the t: was used only on inputfields. This works flawlessly. Thank you. Maybe having this example on Readme would help other users too.