This works for web and application fields.
import pyperclip import keyboard pyperclip.copy("testing") keyboard.send('ctrl+v')