This is a simple Python automation script built using the PyAutoGUI library.
The bot automatically types numbered motivational messages on your screen.
- Automatically types messages
- Adds numbering from 1 to 20
- Simulates keyboard typing and pressing Enter
- Includes typing delay for realistic behavior
import pyautogui as robot
robot.sleep(3)
for i in range(1, 21):
robot.sleep(0.5)
robot.write(f'{i}. I can do it', interval=0.1)
robot.press('enter')Install Python and the required library:
pip install pyautogui-
The script waits 3 seconds before starting.
-
It types:
1. I can do it 2. I can do it ... 20. I can do it -
After each line, it presses the Enter key automatically.
Run the script using:
python writer.pyMake sure your cursor is focused on a text field (like Notepad, VS Code, or a chat box) before the 3-second timer ends.
- Typing practice automation
- Simple desktop automation
- Learning Python automation
- Fun keyboard bot projects
This script controls your keyboard automatically. Do not move focus away from the target window while the script is running.
This project is licensed under the MIT License.
Mohammad Reza Bakhshandeh
Electrical Engineering (Electronics) Graduate
Interested in Python Development, Computer Vision, Machine Learning, and Artificial Intelligence.