Message Paster is a simple yet powerful tool for assigning custom keybinds to frequently used messages. The application allows you to send predefined messages to any text field by simply pressing the corresponding keybind. It uses Python's pyautogui
for simulating keystrokes and keyboard
for capturing hotkeys.
- Assign custom keybinds to predefined messages.
- Adjust typing speed with a user-friendly slider.
- Easily load and save keybind configurations and messages in JSON format.
- Intuitive graphical user interface built with Tkinter.
- Threaded execution for sending messages, ensuring smooth performance without blocking other actions.
-
Clone or download the repository.
-
Install the required dependencies by running:
pip install -r requirements.txt
The dependencies are:
keyboard
: for managing hotkeys.pyautogui
: for simulating typing.tkinter
: for creating the graphical interface.json
: for reading and writing configuration files.
-
Run the
paster.py
script:python paster.py
-
The window will open, allowing you to configure the keybinds and typing speed.
-
For each message, you can click on it to assign a keybind. If a key is already assigned, you will be prompted with a warning.
-
Adjust the typing speed using the slider for faster or slower typing.
-
Once the keybinds are set up, press the assigned keys to send the corresponding message to the currently focused text field.
- keybinds.json: Stores the keybinds for each message.
- Example format:
{ "Message 1": "F1", "Message 2": "F2" }
- Example format:
- messages.json: Stores the predefined messages that can be assigned to keybinds.
- Example format:
{ "Message 1": "[Placeholder]", "Message 2": "[Another Placeholder]" }
- Example format:
You can edit messages.json
to change the predefined messages and keybinds.json
to manage your key assignments.
- If the program doesn't detect the keypresses, ensure you have the required permissions to listen for keyboard events, especially on Linux or macOS.
- If you encounter issues with the message sending, verify that the correct application or text field is focused.
If you'd like to contribute to this project, please fork the repository and create a pull request.
This project is licensed under the MIT License.