sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05760
Re: [Question #172707]: Is possible to make a combo box to pick an option instead of type it?
Question #172707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/172707
Status: Open => Answered
RaiMan proposed the following answer:
If you are familiar with Java, then have a look at the appropriate
javax.swing features, that can be used in Sikuli scripts (like
JOptionPane, JComboBox). Not really recommended, if you never made this
before.
--- poor man's solution (quick and dirty template):
options = ("1. option1", "2. option2", "X.optionsX")
optionDefault = 2
text=""
for o in options:
text = text + o + "\n"
text = text + "\nSelect an option by entering it's number"
text = text + "\nJust click OK, to select the default"+options[optionDefault-1]
selected = input(text)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.