Skip to content

Instantly share code, notes, and snippets.

@BenjaminHerbert
Created July 16, 2017 22:09
Show Gist options
  • Save BenjaminHerbert/8861d5dbb10125be45cf563349ac5411 to your computer and use it in GitHub Desktop.
Save BenjaminHerbert/8861d5dbb10125be45cf563349ac5411 to your computer and use it in GitHub Desktop.
Autokey - Use text from input box
import time
time.sleep(0.25)
exitCode, contents = dialog.input_dialog(message="What is the name?", default="")
salutation = ""
if exitCode == 0:
salutation = contents
answer = """Hello {0},
lorem ipsum, etc. """.format(salutation)
keyboard.send_keys(answer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment