This python code is used to type a piece of text / code automatically using pyautogui package Keep the text to be typed in a text file and change the name of the file in main code to the name of the text file also , adjust the sleep time accordingly Run main.py and after the sleep time , keep the cursor wherever needed and Done!