save windows clipboard content temporarily and restore later

Neil Hodgson nyamatongwe+thunder at
Fri Oct 9 05:30:01 CEST 2009


> Restoring the data with that format could result in information loss,
> for example when HTML text is saved in ordinary text format. There is
> no format that could preserve 100% of any kind of clipboard content.
> Does anyone has a brilliant solution?

   Enumerate all the clipboard formats with EnumClipboardFormats and
grab the contents in each format then put them all back when finished.


More information about the Python-list mailing list