← Back to team overview

sikuli-driver team mailing list archive

[Question #190010]: Best method for creating a region

 

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

I have been looking for the best method of speeding up a Sikuli script and came across 'region'.

My question, what is the best method for creating a region?

I notice if you use the create region button it creates a region based off the entire screen.

Here is an example of a problem I see… Let’s say you open Internet Explorer but not maximized and you create a region over that. Over a period of time you might be moving that window around and then decide to run the Sikuli test later that day. When you reopen it, you will see that the window is not in the location of where the region was created and only a portion of it is in the region.

I have created region before like this…

 SomeArea = find(“image_of_area.png”)
TheRegion = Region(SomeArea)

Is there a way of setting up a region similar but strictly on the app window(IE) itself so no matter where the location of that window is, it will run successfully?

If you have any other, better methods please let me know.

Thanks


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