sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43716
Re: [Question #657137]: region search work slower
Question #657137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657137
Status: Open => Answered
Alex Lunyov proposed the following answer:
Hm, it should work faster in case you use static visual objects and correct regions.
By the way, region object keeps the last match result and there is no need to search again:
# this is clearer:
reg.wait(img)
reg.click(img)
# this is better:
reg.wait(img)
reg.click()
if it was successful (visual object is in your region), the region
remember click point of the visual object in it and reg.click()
operation results in clicking on that object. But in case the previous
search operation in that region gave no result reg.click() operation
clicks in the region center.
All main features are explained the docs.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.