【问题标题】:Unable to send alt key with xdotool无法使用 xdotool 发送 alt 键
【发布时间】:2014-01-28 17:37:38
【问题描述】:

我正在尝试以下命令:

xdotool key --clearmodifiers --delay 500 alt+f

结果如下错误:

X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  132 (XTEST)
Minor opcode of failed request:  2 (X_XTestFakeInput)
Value in failed request:  0x0
Serial number of failed request:  18
Current serial number in output stream:  19

我尝试不使用--clearmodifiers--delay,但仍然出现同样的错误。

我的系统是 Arch Linux 和 i3 窗口管理器。

【问题讨论】:

    标签: xdotool


    【解决方案1】:

    我也在运行与我的主操作系统 (arch + i3) 相同的设置。我尝试下载 xdotool 并运行相同的命令。无论有没有这两个选项,它都适用。

    如果它不起作用,我会尝试以下方法(除非你已经这样做了):

    1> Reinstall *xdotool*, update, and reboot.
    2> Although it worked, my mod key is set to the *win* key so I'm not sure if that somehow causes issues with 
    a programmable keypress (you wouldn't think so). Try temporarily changing the modifier to the *win* key in your config and reinstall xdotool.
    3> I would also try reinstalling its dependencies (namely libxtst and libxinerama)
    4> If all of the above fails, I'd try the *xdotool-gui* package from the AUR instead and see if that fixes anything.
    

    一个问题:只是为了验证,该错误是总是持续存在的,还是仅在 alt+f 的一种情况下?

    问候:)

    【讨论】:

      猜你喜欢
      • 2022-12-28
      • 2011-03-12
      • 2015-09-21
      • 2011-06-30
      • 2012-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多