usually a timing problem: the GUI is not yet ready to accept the paste, because your script is too fast ;-)
put a short but sufficient wait (try wait(0.5)) before the paste()
usually a timing problem: the GUI is not yet ready to accept the paste, because your script is too fast ;-)
put a short but sufficient wait (try wait(0.5)) before the paste()