← Back to team overview

sikuli-driver team mailing list archive

[Question #678874]: Should "SCREEN" really be mapped to "with" Region?

 

New question #678874 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678874

The following code

print(SCREEN)
with Region(1, 2, 3, 4):
    print(SCREEN)
    print(Screen())
print(SCREEN)


results in:
R[0,0 1680x1050]@S(0)

R[1,2 3x4]@S(0)
R[0,0 1680x1050]@S(0)

R[0,0 1680x1050]@S(0)


Within a "with" Region, the SCREEN variable obviously points to the "with" Region, and is afterwards reassigned the Screen() Region.

Is this the intended behavior?

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