← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #180945]: region coordinates after restart picture

 

Question #180945 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/180945

    Status: Open => Answered

RaiMan proposed the following answer:
This is because in the IDE, the result of the button selectRegion() is
displayed as a thumbnail.

this only happens, if there is something found like
Region(x, y, w, h)

where x, y, w and h are all integer numbers, when loading/opening a
script

To avoid this just write e.g.

searchregion = Region (0+57, 50, 600, 400)

or if it makes sense for other purposes, use variables instead of at
least one of the numbers, e.g.

w = 800
h = 400
r1 = Region(50, 50, w, h)
r2 = Region(300, 300, w, h)

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