Autotyper

May 1, 2025 ยท Tyler Yeager

Autotyper
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.

Terminal window
autotype "hello world"
hello world

Did you find this interesting?

Consider subscribing ๐Ÿ˜Š

No AI-generated content or SEO garbage.

Unsubscribe anytime