sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27468
Re: [Question #252512]: How to use regions properly
Question #252512 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252512
Smizzy posted a new comment:
Im having an issue with your suggestion in post#9 about using
click(getLastMatch) when an exists has just been run.
if day.exists("endday.png",0):
day.click(getLastMatch())
wait(0.5)
In this section of code the endday.png is found but it is not clicked, the mouse doesnt move and the loop moves on. When i change getLastMatch() back to endday.png it fixes this issue. Am I missing something in my usage of it?
Similar sections of code are behaving the same.
Swapping it to
try:
day.find("endday.png")
day.click(getLastMatch())
except:
pass
also doesnt click on the found image and continues the rest of the script.
i used highlight() on the regions to visually verify the button was actually inside the searched regions.
And thank you for the sikuli document! I'd seen it once but couldn't
find the link again, I'll be sure to bookmark it this time.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.