Is there a way to access (set, read etc.) the clipboard on Windows 7 64-bit in Python? I have seen PyWin32 but as far as I could see that was only 32-bit.
Asked
Active
Viewed 2,054 times
4 Answers
2
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.

David Heffernan
- 601,492
- 42
- 1,072
- 1,490
-
OP might be just simply confused :) , but he shall know that pywin32 supports x64. – ismail Jan 01 '11 at 18:54
1
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/

Al S.
- 361
- 3
- 4
0
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.

Community
- 1
- 1

Buttons840
- 9,239
- 15
- 58
- 85