← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #147916]: setROI updates the constant variable SCREEN

 

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

RaiMan posted a new comment:
SCREEN is a CONSTANT REFERENCE a Screen object Screen(0) and not its
contents (it is a convenience).

So per definition setROI() changes the region of interest of the SCREEN
object.

If you do not want this, you have to qualify your Screen/Region methods
with the Screen/Region object or use with:

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.