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 -- http://mail.python.org/mailman/listinfo/python-list