← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #295097]: Region trouble (sikuli 1.1.0)

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
wrong usage:

R = SCREEN.setRaster(3,3)

R now is the upper left third of the screen (the raster "knowledge" is
stored in SCREEN)

R.getCell(1,1) hence ist the upper left third of the screen as well,
since R does not have a raster and hence is itself.

usage:
setRaster(3,3) # now SCREEN has the raster
getCell(1,1) # is the middle third of the screen

SCREEN is never needed with undotted Region methods, since this is the
default region in the standard usage meaning the Screen(0)

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