Aaron, Thanks for the heads up on the Toolkit. I know I sort of
installed a few updates of it in autopilot mode and must've missed that
stuff. Thanks for the tip about browse mode though, although now I'm
very interested in the answer to Jamal's Firefox inquiry from earlier.
For what I'm wanting to do, the performance hit is too great using the
objects themselves as they are.
Jared
Aaron Smith wrote:
Jared,
I added that functionality to the toolkit awhile back. Just an FYI.
But, you're right -- it's slow. It's slow because of cross process
calls, and what not. One day in the bright, shiny future, Browse mode
will be completely overhauled, and this problem will go away. Until
then, it may be quicker to work directly with the browser DOM to get
link counts and such.
Aaron
Jared Wright wrote:
Some while back I know I had talked about retrieving the number of
links in the browse mode buffer. I have managed to accomplish this,
but it significantly
increases the time it takes to load a page into browse mode.
Additionally, during this extra time, Wineyes gets into a very
confusing silent state where the downloading page message no longer
speaks. I would presume this is because
the page is loaded and all, but Wineyes is iterating through the
collection of browse mode lines to get the number of links. I'd love
any suggestions as to how I can make this a little more practical
for use in something a little more grand in scope. Code is below.
Jared
---------------------
ConnectEvent BrowseMode, "OnStateChange", "OnStateChange"
sub OnStateChange(State)
dim iLinks :
if state = 4 then
iLinks = getLinks(BrowseMode)
speak iLinks
End If
end sub
function getLinks(oBrowseMode)
getLinks = 0
for each oLine in oBrowseMode.Lines
if oLine.isLink then
getLinks = getLinks+1
end if
next
end function