Last active
November 27, 2015 20:22
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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