Access clipboard Windows (7) 64-bit
Is there a way to access (set, read etc.) the clipboard on Windows 7 64-bit in Python? I开发者_如何学JAVA have seen PyWin32 but as far as I could see that was only 32-bit.
Download the amd64
version of pywin32
for 64bit support, have a look at here
.
There only is one clipboard that is shared between all programs, whether they are 32 or 64 bit. In other words you can just use the same clipboard code on 64 bit Windows as you do on 32 bit.
EDIT: I've just read İsmail's answer and I wonder if that is in fact what the OP is struggling with. My statement above is still true, but I may have misinterpreted the question.
The pyperclip.py module has cross-platform support for simple text copying/pasting.
http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboard-module-for-python/
The easiest method I've seen is demonstrated in this post: How do I copy a string to the clipboard on Windows using Python?
It uses Tkinter, which is in the python standard library.
精彩评论