← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #294330]: KeyModifier.SHIFT + Key.END + Key.PAGE_DOWN not working to select all item in list box

 

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

RaiMan proposed the following answer:
besides the fact, that the mentioned use is not working anyway, since
the modifier keys have to be given as a second parameter to type, it is
not possible to tell type to press more than one key at a time.

You have to use the keyDown()/keyUp() feature:

keyDown(Key.END)
keyDown(Key.PAGE_DOWN)
keyDown(Key.SHIFT)
wait(0.3)
KeyUp()

You have to try out, wether the sequence is of relevance and wether the
wait() is needed (web gui's often need some time to get aware of key or
mouse button changes)

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