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

    Status: Open => Answered

RaiMan proposed the following answer:
--- how can I capture the name of each branch, when they may be partially 
obscured 
not possible, since with Sikuli features, you can only act on,what is fully 
visible on the screen

--- how can I iterate through the tree
This is principally possible, but rather complex.
If you know the visual aspects of the tree in pixels (width, height of one 
entry, indent, ...) you can go through by calculating the region of the next 
entry. Or if each entry has some general visual (e.g. a bullet), you might try 
to use findAll() and calculate the entry regions from the matches you get.
Once you have the entry region, you have to try to read the contained text with 
Region.text() (which might not work as wanted because of the alpha state of 
text recognition).

So check, if there is any other possibility, to get the tree contents: 
- are the contents stored in a folder, where you can get the file names
- or any other file (e.g. XML), that can be read using the normal Python 
features.

-- 
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