← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #214691]: Speed up while loop?

 

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

RaiMan posted a new comment:
You can define regions relative to some fixed aspects of your
application (e.g. a logo or a title bar) using the many possibilities to
define Regions dynamically.

# the basic approach
ref = find("logo.png")
reg = Region(ref.x+300, ref.y+200, 400, 100)

and many other possibilities.
Measuring pixel aspects: see faq 1686 

this works independently of the resolution, as long as the pixels that
make up your image to search stay the same.

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