How can I make Python run a script upon the user copying something to the clipboard and then store what they copied in a variable? Should this be in some sort of a loop?
I used pyperclip for the storage of what is copied:
import pyperclip
s = pyperclip.paste()
pyperclip.copy(s)
print(s)