-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmclip.py
More file actions
23 lines (17 loc) · 681 Bytes
/
mclip.py
File metadata and controls
23 lines (17 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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 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 the keyphrase
if keyphrase in TEXT:
pyperclip.copy(TEXT[keyphrase])
print('Text for ' + keyphrase + ' copied to clipboard.')
else:
print('There is no text for ' + keyphrase)
@py.exe C:\path_to_file\mclip.py %*
@pause