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



--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to