Created
July 16, 2017 22:09
-
-
Save BenjaminHerbert/8861d5dbb10125be45cf563349ac5411 to your computer and use it in GitHub Desktop.
Autokey - Use text from input box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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