我正在寻找使用 xdotool 模拟键盘,但我遇到了部分 URL 问题。我要输入的部分是“-episode-”。
作为解决方案,我有一个文本文件 (hyphen.txt),其中包含:
-
然后我运行:
xdotool key --file ./hyphen.txt
我想避免使用额外的文本文件。有没有办法使用:
xdotool key <>
xdotool type <>
输出一个连字符?
最佳答案
这对我有用:
xdotool key minus
关于python - Linux xdotool 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27697832/