Created
August 30, 2013 19:09
-
-
Save gschizas/6393269 to your computer and use it in GitHub Desktop.
Interact with windows clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32clipboard | |
# set clipboard data | |
win32clipboard.OpenClipboard() | |
win32clipboard.SetClipboardText('testing 123') | |
win32clipboard.CloseClipboard() | |
# get clipboard data | |
win32clipboard.OpenClipboard() | |
data = win32clipboard.GetClipboardData() | |
win32clipboard.CloseClipboard() | |
print(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment