sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24114
Re: [Question #243766]: sikuli is too slow? I can speed up?
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.