sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20914
Re: [Question #235451]: multiple selection
Question #235451 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235451
Status: Open => Answered
RaiMan proposed the following answer:
ok, then forget about comment #1 (I understood, you have 5 different
lists side by side)
select more than one entry in the same list:
keyDown(Key.CTRL) # press and hold
... all the other actions that need the ctrl-key held down
keyUp()
Take care: the section between keyDown and keyUp MUST run without any error, means the keyUp() has to be run definitely.
Otherwise you have to stop and restart the IDE, to release the ctrl-key.
If errors might happen:
try:
keyDown(Key.CTRL)
... your other stuff
keyUp()
catch:
keyUp()
this would take care, that keyUp() is processed in all cases
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.