← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #669762]: why won't Sikuli work on my 2nd monitor?

 

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

    Status: Open => Answered

Jitendra patel proposed the following answer:
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.

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