I've searched around on stackoverflow and I can't seem to understand how you would copy a string input into the windows clipboard. So what I want to do right now is to take a string in a program in python and place it on the windows 8 clipboard so that I can paste it in other programs, say for example, Google Chrome.
After a cursory search, I found a Tkinter solution, as follows:
from Tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append('i can has clipboardz?')
r.destroy()
However I don't understand why it doesn't work. As far as I know, all it does is wipe my current clipboard. Is this OS related?
I've also heard of a win32clipboard module solution for this, but as far as I know, python 2.7 doesn't seem to have a native module for that?