TAGS :Viewed: 23 - Published at: a few seconds ago

[ clipboard access ]

I am trying to retrieve texts from the clipboard using Python module called win32clipboard, as it is described here. But Windows 7 does not allow to access the clipboard with the error 1418 - ERROR_CLIPBOARD_NOT_OPEN as I use:

data = win32clipboard.GetClipboardData()

How can I defeat the system and get the data?

Answer 1


Make sure you have not opened the clipboard twice. You must close it then reopen it.

The open-close operations can't be nested.