Simulate human-like typing using Python with the added feature of adjustable speed.
- Simulates slow typing to mimic human input.
- Adjustable typing speed in Words Per Minute (WPM).
- PyAutoGUI fail-safe: Move your cursor to the top-left corner to halt the script immediately.
- Types out content from your clipboard.
You can install slowPaste directly from GitHub using pip:
pip install slowPaste
- Install the Package: Install the slowPaste package using pip.
- Copy Text: Copy the text you want to be typed out to the clipboard.
- Run the Script with Desired Speed: Run the script using a Python interpreter and specify the desired typing speed in WPM.
from slowPaste import slow_paste slow_paste.main(100) # Replace 100 with your desired speed in WPM
- Focus on Input Field: After running the script, focus on the input field (e.g., text editor, browser) where you want the text to be typed.
- Start Typing: The script will begin typing out the content from the clipboard after a delay of 2 seconds.
- The main function accepts a speed parameter representing the typing speed in Words Per Minute (WPM). The default value is 100 WPM. It also accepts an optional text parameter for manual input, with the default being the content currently copied to the clipboard.
- You can adjust it by passing the desired speed value and text string when calling the main function.
slow_paste.main(150, text="Hello, world!") # Types the provided text at 150 WPM. If text is not provided, it types the clipboard content.
slow_paste()
: The main function that slowly types out the text. It accepts a speed parameter to adjust the typing speed.main()
: Reads the clipboard content and initiates the typing, it also accepts a speed parameter.
- Move the cursor to the top-left corner of the screen to trigger PyAutoGUI's fail-safe and halt the script.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.