Window Eyes will tell you the number of links when the page loads, but I want to get at info like number of links, headings, etc. and use them as pieces in a larger workspace.

Jared

zogser wrote:
I don't understand. Windoweyes already will tell you the number of links on a page. That is all i have it say when the page loads. Windoweyes is locking up for me without your script when i go to a page. I have to press the start key and then alt tab to get it to load the page.
andy
----- Original Message ----- From: "Jared Wright" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 09, 2008 10:25 PM
Subject: Retrieiving Information About Browse Mode Elements


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





Reply via email to