A simple Python tool that copies the content of a text file, which has the same base name as the executable .exe file, to the Windows clipboard.
- This program automatically detects the executable's name, looks for a
.txtfile with the same base name in the same directory. - Reads its content
- Copies it to the clipboard.
If the
.txtfile is missing or an error occurs, an appropriate message is displayed. Example: polymorph.exe will look for polymorph.txt in the same directory and copy its content to the clipboard
- Python 3.x
- pyperclip module (
pip install pyperclip) - pyinstaller module (
pip install pyinstaller) - compilation to
.exe(pyinstaller --onefile polymorph.py) polymorph.exe will be in thedistfolder Change polymorph.exe to any name you want
- Requires the
pyperclipmodule for clipboard operations. (pip install pyperclip) - Works on Windows after compilation py to
.exe. - Automatically matches the
.txtfile by the exe's base name.
- Clone the repository:
- Install
pyperclipmodule (pip install pyperclip) - Install pyinstaller module (
pip install pyinstaller) - Compile polymorph.py to polymorph.exe (
pyinstaller --onefile polymorph.py