Question #233355 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/233355
Status: Open => Answered
RaiMan proposed the following answer:
I tested with version 1.0.1, which is only a few days away from release.
- Screen(0) is the monitor having the menuBar/dock
- the coordinates of additional monitors are according to their relative
position to primary (left negative x-values, right positive x-values +
width of primary)
- regions are correctly referenced on the screen (e.g. r.highlight(2))
and capture(r) captures the correct image as expected.
There is one problem left currently:
find only works on the primary screen. When find is advised to search on other
screens or regions on other screens, the search region seems to be wrong.
I will check this further and fix it with 1.0.1
--- This was my test code:
showScreens()
r = selectRegion()
r.highlight(2)
r1 = r.grow(10)
r1.highlight(2)
img = capture(r)
print img
print r1.find(img) # this fails on Screen(1) with a search region out side any
screen
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp