【发布时间】:2014-12-30 00:06:31
【问题描述】:
我希望使用 xdotool 模拟键盘,但我遇到了部分 URL 的问题。我要输入的部分是“-episode-”。
作为解决方案,我有一个文本文件 (hyphen.txt),其中包含:
-
然后我运行:
xdotool key --file ./hyphen.txt
我想避免使用额外的文本文件。有没有办法使用:
xdotool key <>
xdotool type <>
输出连字符?
【问题讨论】:
标签: python linux ubuntu xdotool