【问题标题】:Linux xdotool symbolsLinux xdotool 符号
【发布时间】:2014-12-30 00:06:31
【问题描述】:

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

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

-

然后我运行:

xdotool key --file ./hyphen.txt

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

xdotool key <>
xdotool type <>

输出连字符?

【问题讨论】:

    标签: python linux ubuntu xdotool


    【解决方案1】:

    这对我有用:

    xdotool key minus
    

    【讨论】:

      【解决方案2】:

      命令

      xdotool key hyphen
      

      类型-

      xdotool key hyphen e p i s o d e hyphen
      

      类型-­episode­-

      【讨论】:

        【解决方案3】:

        我发现:

        xdotool type -
        

        会产生想要的结果

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2020-07-31
          • 1970-01-01
          • 2012-07-09
          • 1970-01-01
          • 1970-01-01
          • 2012-04-21
          • 2019-07-29
          • 1970-01-01
          相关资源
          最近更新 更多