← Back to team overview

sikuli-driver team mailing list archive

[Question #150836]: Getting a sub region from a region.

 

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

Is there a way to get a region using coordinates in the context of another region?
I for example want the Region(50, 50, 50, 50) of an app.

I have tried things like this:
app = App("Firefox")
region = app.window()
subregion = Region(50, 50, 50, 50)
region.getRegionFromPSRM(subregion)

That is I want the region at 50, 50 in the Firefox window, not in my monitor in general.


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