Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- #mclip.py - A multi-clipboard program.
- TEXT = {'agree':"""Yes, I agree.That sounds fine to me.""",
- 'busy':"""sorry, can we do this later this week or next week""",
- 'upsell':"""would you consider making this a monthly donation?"""}
- import sys,pyperclip
- if len(sys.argv) < 2:
- print('Usage: python mclip.py [keyphrase] - copy phrase text')
- sys.exit()
- keyphrase = sys.argv[1] #first command line arg is keyphrase
- if keyphrase in TEXT:
- pyperclip.copy(TEXT[keyphrase])
- pyperclip.paste()
- print('Text for ' + keyphrase + ' copied to clipboard')
- else:
- print('There is no text for' + keyphrase)
Add Comment
Please, Sign In to add comment