Skip to content

Instantly share code, notes, and snippets.

@ltpitt
Created August 5, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltpitt/a303d5967f55f359040e5410b51f18e7 to your computer and use it in GitHub Desktop.
Save ltpitt/a303d5967f55f359040e5410b51f18e7 to your computer and use it in GitHub Desktop.
A quick and dirty hack to type into fields where you cannot paste
import time
from pyautogui import typewrite
import easygui
text = easygui.textbox("Paste your text here, click on ok and then click in the field where you want the text to be pasted and wait for 10 seconds.", "Paste-into-anything-3000")
time.sleep(10)
typewrite(text, 0.01)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment