I’m doing this tutorial using Python 3.x, but the same can be done using Python 2.x
The following python script has following properties
- requires pyperclip module to run
- Copy to and from clipboard
- Tested on Unix(MacOs and Ubuntu)
- But should also work on windows
Try, test, run and then write your own And I forgot something, Hello everyone :-)
The required pyperclip can be installed as follows:
pip3 install pyperclip
or more specifically
python3 -m pip install pyperclip
The installation can checked on Unix in following way:
pip3 freeze|grep 'pyperclip'
or more specifically
python3 -m pip freeze|grep 'pyperclip'
The result will be something like:
pyperclip==1.5.27
Now here is a self explanatory sample code.