Hi Everyone,
This works...
import time
time.sleep(0.1)
keyboard.send_keys('''Sentence 1
Sentence 2
Sentence 3
and so on...''')
However, instead of having AutoKey insert the strings from the keyboard, I’d like to AutoKey to paste the strings from the clipboard. Of course this is similar to how one can choose to paste from the clipboard when creating a phrase in AutoKey which is depicted in the following screenshot...
After some searching on Google I installed [pyperclip 1.7.0](
https://pypi.org/project/pyperclip/). I also installed xclip (because I'm using Linux). Then I created the following script named XYZ in AutoKey...
import time
time.sleep(0.1)
import pyperclip
pyperclip.copy('Testing 123')
pyperclip.paste()
After I ran it, I received the following error message...
"The script XYZ encountered an error."
I'd appreciate some helpful suggestions.
Thanks,
Yekutiel