Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # os_generic_clipboard.py
- import os
- def addToClipBoard(text):
- command = 'echo ' + text.strip() + '| clip'
- os.system(command)
- #example
- addToClipBoard('Thank You, Python!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement