sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43366
Re: [Question #654244]: Waiting for image, type command, then waits again
Question #654244 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/654244
Status: Open => Answered
dinev proposed the following answer:
"I am looking for a simple script that will watch for an image, type the
letter c until the image is gone. then wait for the image to come back
again indefinitely."
Here is possible solution to your initial question:
while True:
while not exists(image1):
sleep(1)
while exists(image1):
type("c")
sleep(1)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.