A utility for automatically pressing keys at regular intervals.
RapidFire is a simple auto key-press utility that simulates continuous key presses after you've pressed a key once. It's useful for scenarios where repeated key presses are needed, such as in games, form filling, or text repetition.
- Start auto-pressing by pressing any key once
- Continue pressing at 1-second intervals (configurable)
- Stop immediately with a key combination (Ctrl+Esc+W) (also configurable)
- Lightweight with minimal dependencies
pip install -r requirements.txt
Run the script:
python rapid_fire.py
- Press any key to begin auto-pressing that key every second
- Press Ctrl+Esc+W to stop the auto-pressing functionality
If the keyboard listener fails to initialize, the program will automatically switch to Command-Line Interface (CLI) mode. In this mode, you can use the following commands:
start <key>
- Start auto-pressing a key (e.g., 'start a' or 'start space')stop
- Stop current auto-pressinginterval <seconds>
- Change the press interval (e.g., 'interval 0.5')exit
orquit
- Exit the program
For special keys, use these keywords:
space
- Space keyenter
- Enter keytab
- Tab keyesc
- Escape keyctrl
- Control keyalt
- Alt keyshift
- Shift key
You can modify the rapid_fire.py
script to change:
- Key press interval (default: 1 second)
- Stop key combination (default: Ctrl+Esc+W)
- Python 3.6+
- keyboard library (automatically installed via requirements.txt)
This utility requires root/administrator privileges to run on most systems due to the keyboard library needing global keyboard access.
Pablo Ramos Muras (@murapa96)