Python Forum
Auto-copy all displayed "print" results into clipboard? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Auto-copy all displayed "print" results into clipboard? (/thread-23208.html)



Auto-copy all displayed "print" results into clipboard? - smallabc - Dec-16-2019

Are there any ways for python to store all its "print" messages into clipboard, after finishing its execution at the end?
I come across a module "pyperclip", but some "print" content cannot be stored into clipboard.
Thanks!


RE: Auto-copy all displayed "print" results into clipboard? - buran - Dec-16-2019

Check this answer by Net Batchelder. Also don't skip the other provided answers.
Then you can use pyperclip to store it in the Clipboard