Re: [Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-05 Thread RaiMan
Question #233507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/233507 RaiMan posted a new comment: --- but cannot stand break break and continue are first class features for loops in languages, that do not have goto statements. You are doing nothing else with your while, but

Re: [Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-04 Thread Giuseppe Marullo
Question #233507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/233507 Giuseppe Marullo posted a new comment: While I am learning Java, here it is FindAllImages(infolder) RaiMan, I got the getLastMatch optimization but cannot stand break, so I left the while... Hopefully you

Re: [Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-04 Thread RaiMan
Question #233507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/233507 RaiMan posted a new comment: --- findAll/findAny from a folder of image files ... not a feature yet, but on the list for improvements for version 1.1 later this year So what you did with your loop is princip

Re: [Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-04 Thread Giuseppe Marullo
Question #233507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/233507 Status: Needs information => Solved Giuseppe Marullo confirmed that the question is solved: Thank you RaiMan. The part you provided was how to capture the icon (Thank You!) I was trying to write the fol

Re: [Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-04 Thread RaiMan
Question #233507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/233507 Status: Open => Needs information RaiMan requested more information: -- getting the images for the 3 states of an icon: s = new Screen(); s.click(); Match m = s.find("image-of-unselected-icon.png"); s.h

[Sikuli-driver] [Question #233507]: Cleanest way to search if at least one image of a set is present

2013-08-04 Thread Giuseppe Marullo
New question #233507 on Sikuli: https://answers.launchpad.net/sikuli/+question/233507 Hello, I am trying to port a AutoHotKey script that will record mouse and keyboard actions and produce a AutoHotKey script to Sikuli Java. Yes, it will be a Java program that will generates another Java program