Reputation: 57
I'm new to python and i'm trying to install win32clipboard to be able to use this code:
import win32clipboard
win32clipboard.OpenClipboard()
win32clipboard.SetClipboardText('testing 123')
win32clipboard.CloseClipboard()
# get clipboard data
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
print data
raw_input()
How do i exactly install the necessary module to be able to do so? I'm using python version 2.72.
Upvotes: 5
Views: 29739
Reputation: 171
For those still here 7 years later
run this in your shell or cmd (assuming you added python to PATH, otherwise do that first)
pip install pywin32
Upvotes: 17
Reputation: 10806
This module is part of pywin32 module.
To install:
pywin32-219.win-amd64-py2.7.exe
win32clipboard
script.Upvotes: 15