now that the key phrase is stored as string in the variable keyphraseyou need to see whether it exists in the text dictionary as key if soyou want to copy the key' value to the clipboard using pyperclip copy((since you're using the pyperclip moduleyou need to import it note that you don' actually need the keyphrase variableyou could just use sys argv[ everywhere keyphrase is used in this program but variable named keyphrase is much more readable than something cryptic like sys argv[ make your program look like the following#python mclip py multi-clipboard program text {'agree'"""yesi agree that sounds fine to me """'busy'"""sorrycan we do this later this week or next week?"""'upsell'"""would you consider making this monthly donation?"""import syspyperclip if len(sys argv print('usagepy mclip py [keyphrasecopy phrase text'sys exit(keyphrase sys argv[ first command line arg is the keyphrase if keyphrase in textpyperclip copy(text[keyphrase]print('text for keyphrase copied to clipboard 'elseprint('there is no text for keyphrasethis new code looks in the text dictionary for the key phrase if the key phrase is key in the dictionarywe get the value corresponding to that keycopy it to the clipboardand print message saying that we copied the value otherwisewe print message saying there' no key phrase with that name that' the complete script using the instructions in appendix for launching command line programs easilyyou now have fast way to copy messages to the clipboard you will have to modify the text dictionary value in the source whenever you want to update the program with new message on windowsyou can create batch file to run this program with the win- run window (for more about batch filessee appendix enter the following into the file editor and save the file as mclip bat in the :\windows folder@py exe :\path_to_file\mclip py %@pause with this batch file createdrunning the multi-clipboard program on windows is just matter of pressing win- and typing mclip key phrase