← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #675373]: [HowTo] make a simple loop with "exists image" and "click image"? (Sikuli)

 

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

Summary changed to:
[HowTo] make a simple loop with "exists image" and "click image"? (Sikuli)

Description changed to:
Hello!

I don't know how to make a simple loop that lasts forever.

The script to be looped is this one:

exists("1539962756733.png")
click("1539962769464.png")

I just want it to loop if the conditions exist.

I already read some questions about it but still couldn't figure out how
to do it.

Also, is it possible to make a script that is just activated in case
another condition is false?

Example:

If "x" image exists don't do nothing.
If "x" image doesn't exist, run the script.

Thank you for all the help!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.