[jawsscripts] Re: Looping down a dynamic list

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 7 Feb 2018 15:47:36 -0700

Rod, I think we need a bit more detail. Can u tell us precisely what
you're doing & what you're looking for? Are all these controls in the
same window, or do they occupy different windows? I don't even know
what to ask, if only because I don't know what sort of app you're
working with, etc.

On 2/7/18, rodalcidonis@xxxxxxxxx <rodalcidonis@xxxxxxxxx> wrote:

Thanks, Bob for the attempt but you may have gone over my head  just a
little.

I understand conceptually what you are suggesting, but I cannot figure how
to implement that by way of syntax.

So, I have this as follows:

static text
1
2
3
4
5

and it ends with static text. After static text, there can be 1 to 100 or
just 1. I want to loop to click on any given line not by a numeral counter,

but more conditionally.
Suggestions?



-----Original Message-----
From: Bob
Sent: Wednesday, February 7, 2018 10:54 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Looping down a dynamic list



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

__________�

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




-- 
Remember! Friends Help Friends Be Cybersafe
Jackie McBride
Helping Cybercrime Victims 1 Person at a Time
https://brighter-vision.com
__________�

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

Other related posts: