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

    Status: Open => Answered

RaiMan proposed the following answer:
I guess you are working with absolute Regions ( Region(x, y, w, h) ).

If your search area (in your case the window) might change position
and/or size between scrip runs, you have to some how get the window are
either based on the App class (see docs) or by searching a fixed key
visual (logo, header, ...) from where you calculate the search area,
e.g.

ref = find(key_visual)
window = Region(ref.x-50, ref.y-20, 600, 400)

more options like Region.left(), ... can be found in the docs.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to