1

我正在寻找使用 xdotool 模拟键盘,但我遇到了部分 URL 的问题。我要输入的部分是“-episode-”。

作为解决方案,我有一个文本文件(hyphen.txt),其中包含:

-

然后我运行:

xdotool key --file ./hyphen.txt

我想避免使用额外的文本文件。有没有办法使用:

xdotool key <>
xdotool type <>

输出连字符?

4

3 回答 3

3

这对我有用:

xdotool key minus
于 2015-11-11T19:37:44.387 回答
1

命令

xdotool key hyphen

类型-

xdotool key hyphen e p i s o d e hyphen

类型-­episode­-

于 2014-12-30T01:06:59.197 回答
1

我找到:

xdotool type -

将产生预期的结果

于 2014-12-31T04:16:29.907 回答