region

Asked by felipe

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.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Weisler (mark-weisler-saratoga-ca) said :
#1

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

Can you help with this problem?

Provide an answer of your own, or ask felipe for more information if necessary.

To post a message you must log in.