Skip to content

Instantly share code, notes, and snippets.

@GeorgeGkas-zz
Last active November 27, 2015 20:22
Show Gist options
  • Select an option

  • Save GeorgeGkas-zz/39cb4da1a7b8abd27b07 to your computer and use it in GitHub Desktop.

Select an option

Save GeorgeGkas-zz/39cb4da1a7b8abd27b07 to your computer and use it in GitHub Desktop.
Based on Notepad++ "Je suis Charlie" automatic typing feature. Implemented in Python.
import time
import sys
string = """
Text to show here.....
"""
for i in string:
if i == '.':
time.sleep(0.40)
elif i == ',':
time.sleep(0.35)
elif i.isspace():
time.sleep(0.15)
elif i == '\n':
time.sleep(0.40)
else:
time.sleep(0.08)
sys.stdout.write(i)
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment