Question #670379 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670379

    Status: Open => Answered

RaiMan proposed the following answer:
This is a restriction on Mac, that cannot be solved in the current
version.

To capture something in these areas, you have to start the SikuliX IDE
capture outside and then move in (only parts of the section rectangle
are visible then).

Another option is, to capture using the Mac feature and then insert the
image into the SikuliX IDE.

Be aware: Mac capture on retina displays creates images that are double-sized 
in pixels in width and height.
Before such an image can be used in SikuliX it must be scaled down with the 
factor 0.5 for both width and height.
This can be done with Mac Preview app before inserting the image into the IDE.

With the next nightly build of 1.1.3 (later today) there will be a 
"scale-before-search" option available, which could be used in Retina situation 
like so:
img = Pattern("some-inserted-mac-retina-capture.png").resize(0.5)
hover(img)

which would reduce the capture effort on Retina to these steps:
- capture with Mac tool
- insert image in IDE as Pattern(img).resize(0.5)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to