save windows clipboard content temporarily and restore later

Neil Hodgson nyamatongwe+thunder at gmail.com
Thu Oct 8 23:30:01 EDT 2009


kakarukeys:

> 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.

   Neil



More information about the Python-list mailing list