[jawsscripts] Re: Looping down a dynamic list

  • From: Bob <temp@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 7 Feb 2018 15:54:18 +0000

The key will be to understand what comes after the items in the list. 

Use a while loop that tests for the end of the list and inside the loop run 
your code against the list items. 

So very vague Sudo code:

Found = False
ErrorCheck = True
While ! Found && ErrorCheck

 If EndOfList() Then
   ErrorCheck = False
 EndIf

 Found = IsThisItemTheOneIWant()
 If ! Found Then
   NextLine()
 EndIf

Endwhile

Hope that helps a bit

Bob

On 7 Feb 2018, at 15:17, <rodalcidonis@xxxxxxxxx> <rodalcidonis@xxxxxxxxx> 
wrote:

Hi guys:

I need help please.

I have a menu that I am looping down in search of a control attribute. My 
issue is that the list is dynamic. Based on the action of the user, there 
can be 5, 10, or a hundred items. I am therefore unable to specify a loop 
counter as I do not know how many times to go nextline until the specific 
attribute is found. I am looking for a line with a checkbox and thus a value 
of 1 if my getControlAttribute was successful. I don't want to set an 
arbitrary number of let say, excessively 200, which can make the function 
runs very very slow.

Any ideas, tips, or suggestions, please?

Thanks in advance.



----Original Message----- 
From: Doug Lee
Sent: Friday, February 2, 2018 7:15 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: SayInt Limit

One more comment: Both your subject and your code example refer to sayInt. 
I'm assuming you mean sayInteger because there is no sayInt in native JAWS; 
but if not, check for the code of that function among your running scripts.

On Fri, Feb 02, 2018 at 11:30:46AM +0000, Bob wrote:
Another odd question, using Jaws 17 for this one.

SayInt (3547573373) is announcing minus 1

Is there any way to work around this?

Thanks

Bob

__________???

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

-- 
Doug Lee, Senior Accessibility Programmer
Level Access (formerly SSB BART Group)
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts ;

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: