sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11516
Re: [Question #202284]: Some General Help For a New Learner :)
Question #202284 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/202284
Status: Open => Answered
RaiMan proposed the following answer:
If I understood right:
import time
max = 5*60 # 5 minutes in seconds
start = time.time() # now
while (time.time() - start) < max: # loop 5 minutes
if exists(<image>, 30): # wait max 30seconds for image
click(getLastMatch()) # click it
wait(20) # wait 20 secs and loop again
else: # did not come within 30 seconds
click(<image1>)
# loop again
the <image...> have to be replaced by the respective shots.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.