Answers for "python win32 clipboard"

3

save clipboard data win32clipboard python

import win32clipboard

# set clipboard data
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText('testing 123')
win32clipboard.CloseClipboard()

# get clipboard data
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
print data
Posted by: Guest on April-23-2020
2

win32clipboard python

pip install pywin32
Posted by: Guest on May-30-2020

Browse Popular Code Answers by Language