← Back to team overview

sikuli-driver team mailing list archive

[Question #210421]: create a new region only with integers?

 

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

Hello, is it possible to create a region without any .png - only with integers which define the x-position, y-position, width height? Like:
myregion = Region(AnyInteger_1, AnyInteger_2, AnyInteger_3, AnyInteger_4)
I wasn't able to do it this way.

I had to do it another way:
myregion = find(AnyCaptureOfTheScreen.png)
myregion.setX(AnyInteger_1)
myregion.setY(AnyInteger_2)
myregion.setW(AnyInteger_3)
myregion.setH(AnyInteger_4)

How can I define a region without any .png (only by integers)?

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