Seemingly type out text with an arbitrary speed
Since you want it to seemingly be typed out, you probably would like the characters to appear not too fast.
You can use the code below to open a text file and seemingly "type" it anywhere.
# open the textfile
text = open(sys.argv).read().strip()
for ch in text:
# type out the text
subprocess.call(["xdotool", "type", ch])
# increase or decrease the time below to type slower or faster
How to use
You'll need xdotool to be installed
sudo apt-get install xdotool
Copy te script into an empty file, save it as
Run it with the text file as an argument:
python3 /path/to/type_out.py <textfile>
In case you'd like it to type into anything, you might want to add a small break before it to run, to be able to prevent it from starting to type while you're not ready yet...