Re: Can python access windows clipboard
- From: "Gabriel Genellina" <gagsl-py2@xxxxxxxxxxxx>
- Date: Thu, 21 Jun 2007 06:36:58 -0300
En Thu, 21 Jun 2007 05:59:06 -0300, MaHL <mhl1983@xxxxxxxxx> escribió:
Can I use python to copy something(like a string) to the clipboard, so
that I can paste it somewhere else. Is there a way to do this?
Yes, using the pywin32 extensions that you can download from Sourceforge
py> from win32clipboard import *
py> OpenClipboard()
py> EmptyClipboard()
py> SetClipboardText("Hello from Python!")
11272196
py> CloseClipboard()
Ctrl-v: Hello from Python!
--
Gabriel Genellina
.
- References:
- Can python access windows clipboard
- From: MaHL
- Can python access windows clipboard
- Prev by Date: Re: metaclasses and performance
- Next by Date: Re: Can python access windows clipboard
- Previous by thread: Re: Can python access windows clipboard
- Next by thread: Re: Can python access windows clipboard
- Index(es):
Relevant Pages
|