why won't Sikuli work on my 2nd monitor?

Asked by Pamela Kilponen on 2018-05-30

when using 2nd monitor I get error messages and Sikuli will not run. When I return to monitor 1, it runs with no error messages.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-05-30
Last reply:
2018-05-31
Jitendra patel (jpatel1011) said : #1

sikuli uses the primary screen by default you can set the region of interest to the 2nd monitor using

setROI(Screen(1))

you can go back to the primary monitor by setting ROI to Screen(0) or SCREEN

if you need to use both monitors at once you'll need to expand the region of screen(0). the following should work

myRegion = getScreen()
myRegion.setW(myRegion.getW() + 1920) // you may need to adjust the 1920 depending on screen resolution
setROI(myRegion)

There may be a negative impact on performance should you choose to use a large region when it comes to finding.

Can you help with this problem?

Provide an answer of your own, or ask Pamela Kilponen for more information if necessary.

To post a message you must log in.