← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #161632]: True or False when image is visible

 

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

RaiMan proposed the following answer:
*** on comment #2

--- first example:

while True:
    App.open(r"c:\example.exe")
    break

is the same as:

App.open(r"c:\example.exe")

--- second example:

while exists(image):
    App.open(r"c:\example.exe")

would loop as long as image is found and each time process App.open().

so if you want it only once:

if exists(image): App.open(r"c:\example.exe")

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