← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #216763]: How to write a while command in java using sikuli script.jar file

 

Question #216763 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216763

    Status: Open => Answered

RaiMan proposed the following answer:
Sikuli IDE is Python language

Your Eclipse code looks like Java.

so you have to use something like:

while (null !=  region.find(pattern).inside().find("C:\\startbutton.png")) {
}

since java is more strict about conditions. In Python more stuff is
accepted as being True and False (it is a scripting language ;-).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.