xdotool 类型错误。无法在同一字段中输入以 -(连字符/破折号)开头且以 .(点)开头的字段

xdotool 类型错误。无法在同一字段中输入以 -(连字符/破折号)开头且以 .(点)开头的字段
$ xdotool type -14.7873
type: unrecognized option '-14.7873'
Usage: type [--window windowid] [--delay milliseconds] <things to type>
--window <windowid>    - specify a window to send keys to
--delay <milliseconds> - delay between keystrokes
--clearmodifiers       - reset active modifiers (alt, etc) while typing
--args N  - how many arguments to expect in the exec command. This is
            useful for ending an exec and continuing with more xdotool
            commands
--terminator TERM - similar to --args, specifies a terminator that
                    marks the end of 'exec' arguments. This is useful
                    for continuing with more xdotool commands.
-h, --help             - show this help output

答案1

虽然我在手册页中找不到它的记录,但xdotool type似乎接受 GNU 样式--序列来指示选项参数的结束,即

xdotool type -- -14.7873

相关内容