sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27450
Re: [Question #252512]: How to use regions properly
Question #252512 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252512
RaiMan posted a new comment:
--- A general comment:
if you have found something in a region (e.g. with game.exists(someImage)) then you can use game.click(getLastMatch()) to click, what just was found in region game.
if game.exists("another close button.png"):
game.click("another close button.png")
the click in your case triggers another search, that costs valuable
time.
--- speeding things up:
If you think something should be there or if you are searching a sequence of images to find out, which one is there:
match = region.exists(someImage, 0)
The 0 tells the search to only look once and come back immediately,
found or not.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.