autotype() { sleep 3; xdotool type --delay 60 "$@"; }
Sometimes copy and paste just doesnโt work. This is becoming more common with services like multi factor authentication. The form will have six separate form input elements. They expect for you to type in the values. But when you try to copy and paste in the value, it copies everything into the first input element.
This is terribly annoying. Iโm not sure why itโs done like this, except to be clever.
Another issue is with games that donโt accept pasting in input. Itโll let you type into it, but after copying the values, pasting does nothing.
To get around this, this autotyper lets you type in the value you need to input, then sleeps for 3 seconds (to give you time). Then it will simulate typing in one character at a time.
If you have spaces or other special characters, make sure to escape them.
autotype "hello world"hello world