save windows clipboard content temporarily and restore later

Neil Hodgson nyamatongwe+thunder at gmail.com
Fri Oct 9 18:00:40 EDT 2009


kakarukeys:

> I followed your hints, and wrote the following code. It works for most
> clipboard formats except files. Selecting and copying a file, followed
> by backup() and restore() throw an exception:

   For some formats the handle stored on the clipboard may not be a
memory handle so may not be retrieved as memory. You could try using a
list of formats to include or exclude or just pass over the exception.

   Neil



More information about the Python-list mailing list