Skip to content

Instantly share code, notes, and snippets.

@puppis42
Created August 26, 2021 19:58
Show Gist options
  • Save puppis42/7704b315e39fbb8eaec6ddb07a4c5c92 to your computer and use it in GitHub Desktop.
Save puppis42/7704b315e39fbb8eaec6ddb07a4c5c92 to your computer and use it in GitHub Desktop.
import win32clipboard
# test11111111
# test22222222
# test33333333
def clipText():
try:
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
return data
except TypeError:
return "None"
print(clipText())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment