Skip to content

python script that copies text from the same as sctipt filename, but .txt (Windows only)

License

artpo13/polymorph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CopyMatchingTxtToClipboard

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.


Description

  1. This program automatically detects the executable's name, looks for a .txt file with the same base name in the same directory.
  2. Reads its content
  3. Copies it to the clipboard. If the .txt file 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

Requirements

  • 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 the dist folder Change polymorph.exe to any name you want

Features

  • Requires the pyperclip module for clipboard operations. (pip install pyperclip)
  • Works on Windows after compilation py to .exe.
  • Automatically matches the .txt file by the exe's base name.

Installation

  1. Clone the repository:
  2. Install pyperclip module (pip install pyperclip)
  3. Install pyinstaller module (pip install pyinstaller)
  4. Compile polymorph.py to polymorph.exe (pyinstaller --onefile polymorph.py

About

python script that copies text from the same as sctipt filename, but .txt (Windows only)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages