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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to