sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27746
Re: [Question #253526]: region
Question #253526 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253526
Status: Open => Answered
Mark Weisler proposed the following answer:
On Aug 24, 2014, at 2:32 AM, felipe wrote:
> Question #253526 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/253526
>
> Description changed to:
> Hello, I have a simple question. In my work I use Sikuli to automate
> some tasks, however, the activity and based on an application that uses
> a lot of data processing PC. Over time the Sikuli start to decrease your
> speed. As the task only needs a certain region of the application, I
> would like to know if you enclose an area of the screen to the Sikuli
> working on it? So I which improved the performance of both I think.
>
It's a good idea to restrict your Sikuli operations to as small of an area as reasonably possible so Sikuli does not waste processing in areas of no interest.
Several methods exist for this...
Here, we programmatically define a region using absolute screen
coordinates.
myReg= Region(100,100,500,600)
myReg.highlight(2)
... then go on with looking for an image match or whatever you need to do.
So, yes, restrict the screen area Sikuli has to work on.
--
Mark Weisler
PGP Key ID 68E462B6
PGP Key fingerprint 87D5 A77B FC47 3CC3 DFF0 586D 23FF F8B4 68E4 62B6
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.