Re: How to copy an image using win32clipboard

Stimpy ****** <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <MN2PR04MB620765547E7DBEBE3BA5128EC3F40@MN2PR04MB6207.namprd04.prod.outlook.com>
Hi Pranav,

Just resending this to the list. 
Here's a great resource: http://timgolden.me.uk/pywin32-docs/win32clipboard.html

The document covers the win32clipboard module very well.The API you'll want to reference is the Win32 API. If you need to reference the protocol/steps in an even more verbose way, WinUser.h's MSDN pages' remarks section will fill any of those gaps.

One such pearl is a warning about about clipboard data:  "Clipboard data is not trusted. Parse the data 
carefully before using it in your application."

Tim's page does a good job with pointing you in the direction of getting more info about any of the given API functions. For example:

https://docs.microsoft.com/en-us/windows/win32/dataxchg/clipboard
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getclipboarddata
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumclipboardformats

Kind Regards,
Adam B. Dodson



From: python-win32 <[email protected]> on behalf of Pranav Gadre <[email protected]>
Sent: Tuesday, December 1, 2020 6:00 AM
To: [email protected] <[email protected]>
Subject: [python-win32] How to copy an image using win32clipboard 
 
Hello,
 
When we take a snip on windows OS, it automatically goes to clipboard. I want to access any copied image using win32clipboard. How do I do that?
Please check this for more reference: Closed issue
Thank you and pardon me for any missing things as I’m new to this mailing list.
Regards,
Pranav
 
Sent from Mail for Windows 10
 
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.