asweigart / pyperclip

Python module for cross-platform clipboard functions.
https://pypi.python.org/pypi/pyperclip
BSD 3-Clause "New" or "Revised" License
1.65k stars 196 forks source link

Error Induced When Editing Clipboard With Long String & Clipboard History Enabled #231

Open eth opened 1 year ago

eth commented 1 year ago

OS: Win 10 Pro, Ver: 21H2, Build: 19044.2006 Error: PyperclipWindowsException("Error calling OpenClipboard") pyperclip.PyperclipWindowsException: Error calling OpenClipboard ([WinError 5] Access is denied.)

Steps to reproduce: In "Clipboard Settings" enable "Clipboard history." Then try to clipboard.copy a long ass string. You will get the resulting error. Oddly clipboard.copy was still working with small to medium-sized strings which made this somewhat annoying to figure out what was causing the issue. If anyone knows how we can allow the two to work in harmony, I would love to be able to use both!