命令
xdotool type "hello"
可用于输入单词hello。但前提是键盘布局不是英文,否则会输入其他内容。
我该如何解决这个问题,以便xdotool在任何布局中始终键入 hello。
xdotool
我使用 Ubuntu 14.04 存储库中的最新版本xdotool。
xorg keyboard-layout xdotool
keyboard-layout ×1
xdotool ×1
xorg ×1