Advertisement
here2share

# os_generic_clipboard.py

Sep 7th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. # os_generic_clipboard.py
  2.  
  3. import os
  4. def addToClipBoard(text):
  5.     command = 'echo ' + text.strip() + '| clip'
  6.     os.system(command)
  7.  
  8. #example
  9. addToClipBoard('Thank You, Python!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement