I want to clear my clipboard after copying stuff. Is this possible?
I tried using clipboard and paperclip, but they don't have clear methods. https://pypi.org/project/pyperclip/#description
You can just copy an empty string: pyperclip.copy('')
If you are on Windows
from ctypes import windll
if windll.user32.OpenClipboard(None):
windll.user32.EmptyClipboard()
windll.user32.CloseClipboard()
No external libraries needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With