Create Autotyper in Python

One can easily create an autotyper in python with the help of some libraries like pyautogui and time.

While time is a built-in module you can download pyautogui by :

pip install pyautogui

Then execute the following code to get your desired output and obviously you can place any text other than ‘lorem ipsum’

import pyautogui as pt
import time
time.sleep(5) #So that you get enough time to place your cursor
pt.typewrite("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",interval=0.2)

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top