Skip to content

SendMode help. #863

Closed Answered by josephj11
pieroluha asked this question in Q&A
May 14, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Welcome to the AutoKey community, @pieroluha !

First, take a look at our wiki. It has a number of useful articles and lots of examples. Start with this.

We only have one version of our documentation. It refers to AutoKey 0.96.0 and you probably have 0.95.10 which didn't have that option.

Other than that, your script is very close to right.
The code below should work, but I haven't tested it, so it may have some typos...

## you don't have to import time, but it doesn't hurt if you do
import random

choices = ["something", "something else", "a third thing"]
keyboard.send_keys("<enter>")  ## don't use send_key() unless you have to.
rn = random.randint(0, 2)

time.sleep(0.1)
clipboard.fill_cl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pieroluha
Comment options

Answer selected by pieroluha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants