Question #243766 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243766
Status: Open => Answered
RaiMan proposed the following answer:
click(reg.wait(a, x))
where x is the time in seconds to wait max
with exists:
if reg.exists(a, x):
click(reg.getLastMatch()) # no search again
else:
exit(1)
with version 1.0.1+ this goes:
reg.wait(a,x)
reg.click() # defaults to getLastMatch() in reg
or:
if reg.exists(a, x):
reg.click()
--
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