[Tutor] copy / paste [win32clipboard]

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Tue, 23 Apr 2002 18:23:06 -0700 (PDT)


On Tue, 23 Apr 2002, Danny Yoo wrote:

> > So, here's the question: How can I copy and paste to the windows
> > clipboard from a python script? I wasn't able to find anything about
> > this in the library reference.
>
> Here you go:
>
>     http://margaretmorgan.com/wesley/python/clipboard.py

Actualy, there may be a better module than this.  The win32 extensions by
Mark Hammond has a 'win32clipboard' module that sounds perfect for you:

http://aspn.activestate.com/ASPN/Reference/Products/ActivePython/PythonWin32Extensions/win32clipboard.html

If you're using vanilla Python, you may need to download the win32
extensions here:

    http://starship.python.net/crew/mhammond/win32/Downloads.html


Good luck to you!