Re: [Sikuli-driver] [Question #708914]: select

2024-01-08 Thread RaiMan
Question #708914 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708914

RaiMan posted a new comment:
BTW:

login = ("outlook", "facebook", "workplace", "page3", "page4")
def select(msg="", title="Sikuli Selection", options=(), default=None):
a = select(msg = "where do you like to log in?", options = login)

your def overwrites the SikuliX select function and simply does nothing
but calling itself.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #708914]: select

2024-01-08 Thread RaiMan
Question #708914 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708914

RaiMan proposed the following answer:
Works on Win11 with 2.0.5 and Java 11 and 19

login = ("outlook", "facebook", "workplace", "page3", "page4")
a = select(msg = "where do you like to log in?", options = login)
print a

shows the select popup and prints the selected option or None if
cancelled.

I am running the SikuliX IDE from the commandline using

"C:\Program Files\EclipseJDK\jdk19\bin\java" -jar 

So something seems to be wrong wit your setup.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp