xxxxxxxxxx
def copy2clip(txt):
cmd='echo '+txt.strip()+'|clip'
return check_call(cmd, shell=True)
copy2clip('This is on my clipboard!')
xxxxxxxxxx
Pls think "does it makes sense" before searching it. No one would tag a website with "oh come here im giving you free code you can copy paste anywhere"