Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! 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]
- if keyphrase in TEXT:
- pyperclip.copy(TEXT[keyphrase])
- print('Text for ' + keyphrase + 'copied to clipboard.')
- else:
- print('There is no text for ' + keyphrase)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement