sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13755
Re: [Question #211517]: Combo box scrolling
Question #211517 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/211517
Status: Open => Answered
Brian Redmond proposed the following answer:
It's worth testing to see if the current selection can be copied to the
clipboard. Some controls that you wouldn't expect would work do and it
makes thing much easier because you can just have Sikuli read from the
clipboard. This would get you to the last item in the list (assuming
that the same value never appears twice in the list):
#After you've made the initial selection
lastSelection = ""
while True:
type("c", KeyModifier.CTRL)
currentSelection = Env.getClipboard()
if currentSelection == lastSelection:
break
lastSelection = currentSelection
type(Key.DOWN)
#Now you're at the last item
Hope this helps at some point if it doesn't happen to work with the box
you're trying now :)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.