I'm currently working on a "autotype"-script for pass. In oder to do that, I need to type the username, press 'Tab' and then type the password.
For testing I'm using the following code:
WID=$(xdotool selectwindow) xdotool windowactivate $WID type --delay 100 "Hello World" xdotool windowactivate $WID key --clearmodifiers Tab xdotool windowactivate $WID type --delay 100 "Hello World"
Then I select
kate as window, but the output is
Hello World8Hello World instead of
Hello World Hello World.
What am I doing wrong?
As workaround you can use
xte 'key Tab' from the
xautomation package. But the original question still remains.