BlueM / cliclick

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

Sending shortcut #35

Closed nordringrayhide closed 8 years ago

nordringrayhide commented 8 years ago

Just have not found how to ask question, so the question is: how to send shortcut into active windows e.g. ALT+CMD+I, to open Google Chrome Development Tools Thanks

BlueM commented 8 years ago

Could be done like this (assumed the target application is already in the foreground): cliclick -w 100 kd:alt,cmd t:i ku:alt,cmd

This means: alt + cmd keys down, then type ā€œiā€, then alt + cmd keys up ā€“ and because that would be too fast for Chrome, wait 100 milliseconds (-w 100) between each action.