sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17199
Re: [Question #225347]: Set a region and find an image into it
Question #225347 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225347
Status: Open => Answered
RaiMan proposed the following answer:
--- defining a region using Sikuli IDE
- write in IDE:
region =
- having the cursor after the = click the third button top left, which
lets you visually select a region on the screen. results in a small
screenshot showing a red rectangle for the selected region. Hovering
over the thumbnail shows a tooltip with the current values as Region(x,
y, w, h).
This is the easiest way, to evaluate absolute positions on a screen (but
see faq 1686)
If you would like to keep the numbers visible in your code instead of a thumbnail:
region = Region(0+x, y, w, h)
(the 0+ hinders the IDE to convert to thumbnail at script load)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.