Send a keypress to a process by Window Class

Requires the application xdtool (can be installed on Ubuntu with ‘sudo apt install xdotool’).

You can find the window class here.

There is a comprehensive list of keys that can be found here or here.

xdotool search --onlyvisible --class $WINDOW_CLASS key --clearmodifiers $KEY
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.