Is pastage of text when a configurable duration of time has elapsed supported? #724
-
I ask because I want to be able to duplicate a long authenticative key text into a window of a virtual-machine, but obviously the clipboard is unable to enable this. I consequently want to be able to select the input-box within the virtual-machine and wait some seconds until AutoKey duplicates it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
It looks like you figured out |
Beta Was this translation helpful? Give feedback.
-
Okay, I can do that. |
Beta Was this translation helpful? Give feedback.
-
You can use # Print the specified text:
keyboard.send_keys("This prints immediately.")
# Insert a three-second delay:
time.sleep(3)
# Print the specified text:
keyboard.send_keys('This prints after 3 seconds.') |
Beta Was this translation helpful? Give feedback.
-
@BEEDELLROKEJULIANLOCKHART Glad this works for you. Be aware that if you include any secrets as constants in your AutoKey scripts or phrases, they are stored as plain text in the body of the script or phrase. Depending on your application, this may be a security issue. |
Beta Was this translation helpful? Give feedback.
You can use
time.sleep()
to insert a delay into your code, specifying the amount of time in seconds. Below is a basic example that prints a line of text, waits 3 seconds, and prints another line of text: