sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45435
Re: [Question #663025]: Moving bar pickup
Question #663025 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663025
Status: Open => Answered
masuo proposed the following answer:
Did you measure turnaround time of each exists() function?
You should understand the phenomenon before thinking about countermeasures.
If you want to repeat the exact same search, use while or for statement.
r = Region(785,569,352,31)
while True:
if r.exists("1516053159102.png",0):
type(Key.SPACE,0)
sleep(1)
And if you don't read basic behavior, this is helpful for your understanding.
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.