2

我正在尝试以下命令:

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

我试过没有--clearmodifiersand--delay但仍然是同样的错误。

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

4

1 回答 1

2

我也在运行与我的主操作系统(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的一种情况下?

问候 :)

于 2014-05-26T11:38:46.637 回答