Evil_Sperm
Evil_Sperm

Reputation: 51

How to get clipboard data using python irrespective of format?

win32clipboard.GetClipboardData(win32clipboard.CF_TEXT) I tried win32clipboard but here we need to specify the format. Is there any way to get data without specifying any particular format. Any library will be helpful.

Upvotes: 0

Views: 1951

Answers (1)

Thomas
Thomas

Reputation: 899

Sure! An incredible cross-platform library: pyperclip.

import pyperclip
currently_copied_content = pyperclip.paste()

Upvotes: 1

Related Questions