diff --git a/Writercode.py b/Writercode.py index 8572716..dafe6f5 100644 --- a/Writercode.py +++ b/Writercode.py @@ -1,7 +1,10 @@ import pyautogui, time pyautogui.FAILSAFE = true +textSpeed = float(input("Enter write speed in seconds")) time.sleep(5) text = open("texttowrite", 'r') for word in text: -pyautogui.typewrite(word) -pyautogui.press("enter") + pyautogui.typewrite(word) + pyautogui.press("enter") + if textSpeed > 0: + time.sleep(textSpeed)