Re: [Sikuli-driver] [Question #708914]: select
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
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
Re: [Sikuli-driver] [Question #708914]: select
Question #708914 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/708914 Status: Open => Answered RaiMan proposed the following answer: Ok. Will check tomorrow. (Germany ;-) -- 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
Question #708914 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/708914 Status: Answered => Open peter hasselby is still having a problem: 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) tried the above. did not come up with an error message. but did not do anything. tried with: login = ("outlook", "facebook", "workplace", "page3", "page4") a = select(msg = "where do you like to log in?", options = login) error: [error] script [ sikulitemp-6386726409248896632 ] stopped with error in line 2 [error] TypeError ( popSelect(): 3rd arg can't be coerced to String ) [error] --- Traceback --- error source first line: module ( function ) statement 432: Sikuli ( select ) return Sikulix.popSelect(msg, title, options, default) 2: main ( ) a = select(msg = "where do you like to log in?", options = login) [error] --- Traceback --- end -- -- 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
Question #708914 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/708914 Status: Open => Answered RaiMan proposed the following answer: The select does not have positional parameters: def select(msg="", title="Sikuli Selection", options=(), default=None) so you have to write: a = select(msg = "where do you like to log in?", options = login) the title might also be a helpful parameter. -- 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
[Sikuli-driver] [Question #708914]: select
New question #708914 on SikuliX: https://answers.launchpad.net/sikuli/+question/708914 I can not get the select() function to work. I have tried following login = ("outlook", "facebook", "workplace", "page3", "page4") a = select("where do you like to log in?", options = login) it show me this error message: [ sikulitemp-7621303983381196603 ] stopped with error in line 2 [error] TypeError ( popSelect(): 3rd arg can't be coerced to String ) [error] --- Traceback --- error source first line: module ( function ) statement 432: Sikuli ( select ) return Sikulix.popSelect(msg, title, options, default) 2: main ( ) selected = select("Please select an item from the list", options = items) [error] --- Traceback --- end -- im using the 2.0.5 -- 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