home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2319 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  862 b   |  23 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import clr
  5. clr.AddReferenceByPartialName('System.Windows.Forms')
  6. import System.Windows.Forms.Clipboard as cb
  7.  
  8. def GetClipboardText():
  9.     text = ''
  10.     if cb.ContainsText():
  11.         text = cb.GetText()
  12.     
  13.     return text
  14.  
  15.  
  16. def SetClipboardText(text):
  17.     cb.SetText(text)
  18.  
  19. if __name__ == '__main__':
  20.     txt = GetClipboardText()
  21.     print txt
  22.  
  23.