Can't get Multimonitor Environment to work
Hi,
i started playing around with sikuli appr. half a year ago, and picked it up again with 0.10. I'm confrontend with the following issue:
running the built in windows screen identifier, i get [1][2] which presumably should correspond to the sikuli mapping [0][1].
however, running 'selectRegion()' and analysing the resulting region objects, i found out, that sikuli maps the screens as [1][0].
so, based on that, i spent several hours to create stable workarounds, including recalculating x coordinates of ROIs (basically substracting the width of my second/right monitor, to no avail so far. Another workaround was to dragdrop windows containing the current ROI to Screen(0) and start from there, but again, it wasn't working as expected.
in all cases, every new find() results in a FindFailed exception, and also if i use setROI, it does not work reliably.
checking mouse location on either screen always shows me coordinates based on [0,0] on both screens. reading the docu i had the idea, that on one screen it should be [-x,0]?
the documentation section about multimonitor environments (http://
how can getNumberScreens(), getBounds() and scr.getBounds() help me to reach my goal?
can somebody provide me with a working example?
or is multiMon evn coverage still work in progress?
thank you so much in advance for sharing your knowledge!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gromadusi
- Solved:
- Last query:
- Last reply: