manpage of xdotool says
-- delay milliseconds Delay between keystrokes. Default is 12ms.
I thought that key string
will type each character in the string once, and --delay
is for pause between typing two consecutive characters. So why do the following first two commands not show typing anything, while the third types twice, and the last types many times? Thanks.
$ xdotool key 9
$ xdotool key --delay 2 9
$ xdotool key --delay 1000 9
99$ xdotool key --delay 10000 9
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999^C
I am using Lubuntu 18.04 and
$ xdotool -v
xdotool version 3.20160805.1
xdotool
commands in terminal if you add a short delay first, likesleep 0.1 && xdotool key 9
– wjandrea Dec 06 '18 at 00:25--delay
mean ideally? – Tim Dec 06 '18 at 00:28key --delay <n> 9
should type the key 9 once, whatever valuen
has, and thus only a single digit is displayed, correct? – Tim Dec 06 '18 at 00:36xdotool type
is also affected. E.g. tryingsleep 0.1 && xdotool type --delay 2000 hello
typeshheelllloo
– wjandrea Dec 06 '18 at 00:39xdotool key m
at the same time, you will get a capital M instead of a small m. – wjandrea Dec 10 '18 at 14:50