Skip to main content

python windows clip tools(calling native windows command

Project description

PyXhWinClipTool

Installation

pip install pyXhWinClipTool -U

# Or

pip3 install pyXhWinClipTool -U

Demo

# Help
python -m pyXhWinClipTool --help

# Copy to clipboard
echo "msg" | python -m pyXhWinClipTool --copy 
# Or
echo "msg" | python -m pyXhWinClipTool -c 

# Retrieve data from clipboard
python -m pyXhWinClipTool --paste 
# Or
python -m pyXhWinClipTool -p

Source Description

The pyXhWinClipTool is simple. It is just a wrapper to windows existing command for operate with clipboard.

Copy

In windows, we could use command 'clip' to copy text to clipboard. e.g.

echo "hihi" | clip

Paste

In windows, we could use command 'powershell' to retrieve text from clipboard. e.g.

powershell get-clipboard

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyXhWinClipTool-0.0.3.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

pyXhWinClipTool-0.0.3-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page