I am trying to make a piece of code that makes something like this
words = "hello my name is Leo"
Into this
This is printed on apple notes but what I want it to do is to copy a the word of the text and paste it, then press the enter key and type another word.
Currently I have this
import pyperclip
words = "hello my name is Leo"
split = words.split()
for x in range(0,len(split)):
pyperclip.copy(split[x])
I am not sure how to make it press enter (with a keystroke) and be able to use automate it to do it in another application. Can anyone help?