← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #690430]: Holding a number key button down for a few seconds

 

Question #690430 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690430

RaiMan proposed the following answer:
as mentioned in the other question:
keyDown in SikuliX (Java Robot) does not trigger the key repeat feature (works only if keyboard is used manually)

this repeatedly types the given key:

for n in range(10):
    type("1")

or
for n in range(10):
    keyDown("1")
    keyUp()

where the second version types a bit faster.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.