sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11761
Re: [Question #203262]: Iterating through a tree
Question #203262 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203262
Dave Marsden posted a new comment:
I've been right through the files for the program, and I can find the
actuall documents, but the page titles and tree etc are held within a
database somewhere and I can find the information. Which is a shame
because like you say that woud have been alot easier. The search for an
alternative method is what brought me to sikuli. Which I'm glad I found.
I've been looking for an excuse to learn python for a while as I tend to
default to PHP myself, so by playing with this I should hopefully teach
myself python aswell.
I have found that I iterate through the tree using keys, getting it to
expand as I go, which gives me some hope. And doing this the current
page, is highlighted. Is it possible to select a region by colour, i.e.
the highlighted section. If this is possible the text will give me the
page title, and the position, i.e indent from the left of the
highlighting would give me the level on the tree. If you handle this in
a recursive function it should be possible to step through the tree
knowing your parent item on the tree each time. Does that sound
possible? Any points on selecting a region by colour, and getting it's
position?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.