clipboard python
import clr
import System
from System.Threading import Thread, ThreadStart
clr.AddReference("System.Windows.Forms")
def SetText(text):
def thread_proc():
System.Windows.Forms.Clipboard.SetText(text)
t = Thread(ThreadStart(thread_proc))
t.ApartmentState = System.Threading.ApartmentState.STA
t.Start()
SetText("Hello word")