Use windows clipboard data in your Maya Python scripts or other generic python.
Dependencies:
setuptools – You should have setuptools installed.
pip – If you have setuptools and/or use easy_install switch to pip by using easy_install to download and install pip, you won’t be sorry. Pip is awesome, setuptools sux. 
pyWin32 – Use pip to download pyWin32 from the commandline using pip install pyWin32. Copy the installation to your Maya site-packages folder including any .pth, .txt, or .egg-info files. Tip: open .pth files in a text editor of choice and check out where pip’s libs are.
'''
based on mel script found here: http://bit.ly/e4qdyH
'''
import win32clipboard
def getClipboardData():
win32clipboard.OpenClipboard()
d = win32clipboard.GetClipboardData( win32clipboard.CF_TEXT )
win32clipboard.CloseClipboard()
return d
getClipboardData()
def putClipboardData(text):
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText( text )
win32clipboard.CloseClipboard()
t= 'test text'
putClipboardData(t)
This is based on what I found on teacup’s techy art stuff, written a while ago. I though it deserved an update, plus I needed it for something specific. It is a really handy module to have in your repertoire. I posted these in a hurry so you probably need to add in some checks to make sure the datatype you are trying to retrieve is text only or else you’ll get errors.
PyQt and Qt obviously are way more powerful for getting other types of data including pixmap and slew of others. This is simplified for a specific purpose. Maybe soon I will be able to post a Qt version including drag and drop functionality.
Lead By Following!