sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22625
Re: [Question #240396]: need help on how to Key.DOWN in x times from a list
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396
Status: Open => Answered
RaiMan proposed the following answer:
for line in myserial:
type(Key.DOWN*line, KeyModifier.CTRL)
--- Key.DOWN*line
this is not a valid parameter for type()
if you want to repeat keys with type(), you have to repeat the type():
for line in myserial:
for nline in range(line): type(Key.DOWN, KeyModifier.CTRL)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.