Win32clipboard: Delayed Rendering using setClipboardData(..., None) results...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
Hello,
According to the documentation at http://docs.activestate.com/activepython/3.2/pywin32/win32clipboard__SetClipboardData_meth.html
,
it should be possible to achieve delayed rendering of clipboard data when setting the second parameter of "win32clipboard.setClipboardData()" to 0. This doesn't work for me and results in the error "pywintypes.error: (0, 'SetClipboardData', 'No error message is available')".
Setting it to "None" doesn't work either and results in the same error.
Here's a short example code:
import win32clipboard win32clipboard.OpenClipboard() win32clipboard.EmptyClipboard() try: win32clipboard.SetClipboardData(win32clipboard.CF_TEXT, 0) finally: win32clipboard.CloseClipboard()
Best regards,
David