← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252512]: How to use regions properly

 

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

Smizzy posted a new comment:
Ok, wow, thats a lot of very intense things. I learned programming from
a C programming course so my natural reaction was to just do massive if
chains, this doit function seems very handy.

The exists(image.png, 0) seems very useful, how many times does the
exists function normally search without specifying 0?

Yeah, 'customer','game', 'quit', 'selling' are all regions, I made about
10 different regions for different buttons/icons to speed up searches.
Also it was the only way i found to stop it from searching my second
screen.

Your post #12,  how does "found = []" work?  what does the found. prefix
do to change the append function? And does this search for all 4 images
at once? or is it just a faster/neater way to search 1 at a time?

Thank you again for all of the input!

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