ydotool
ydotool copied to clipboard
Using key names (mnemonics) instead of hex codes
I've created a Python wrapper (ydo) for which the key names can be used.
For example:
# Type text
./ydo type "Hello world!"
# Press Enter key
./ydo key KEY_ENTER:1 KEY_ENTER:0
# Type with custom delay
./ydo type -d 20 "Slow typing"
# Type from file
./ydo type -f input.txt