[jawsscripts] Re: Looping down a dynamic list

  • From: Bob <temp@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 7 Feb 2018 22:47:24 +0000

So 1 to 100 items between 2 sets of static text. 

While GetObjectSubTypeCode() != WT_STATICTEXT

   NextLine()

EndWhile

It may be easier if you post your code to loop through say 5 items and then 
it’s possible to see how your interacting with them currently. 

Bob



On 7 Feb 2018, at 22:06, <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



__________�

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

Other related posts: