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