[jawsscripts] Re: Basic tips for creating a tab / Shift-tab structure?

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 14 Feb 2018 11:00:48 -0000

Rod, without knowing specifics, this sounds similar to what I've done in a 
couple of inaccessible areas of Samplitude.  I am not saying it's the right 
way, but it was the only way I could get these things working.  So, for 
example when you tab around the vIP in Samplitude, it is using a method I 
think you are wanting.

What I've done is to assign a global to each function in the tab order.  Of 
course, you need to be careful to manage this within the windows you want 
it.

So, I would end up with something like:

Script tab()
If YouAreInTheMainWindow() Then
If (giTab == 1) Then
    MoveToFunction2()
ElIf (giTab == 2) Then
    MoveToFunction3()
ElIf (giTab == 3) Then
    MoveToFunction4()
ElIf (giTab == 4) Then
    MoveToFunction1()
Else
        MoveToFunction1()
Endif
Else
    TypeCurrentscriptKey()
    SayCurrentScriptKeyLabel()
EndIf
EndScript

Then, for activating controls, you would put something like the following 
into your enter key script:

Script EnterKey()
If YouAreInTheMainWindow() Then
If (giTab == 1) Then ; lets say it's a button
    A function to handle that goes here
ElIf (giTab == 2) Then ; lets say it's an edit field
    A function to handle that goes here
EndIf
Else
    TypeCurrentScriptKey()
    SayCurrentScriptKeyLabel()
EndIf
EndScript

Steve.
-----Original Message----- 
From: rodalcidonis@xxxxxxxxx
Sent: Wednesday, February 14, 2018 5:59 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Basic tips for creating a tab / Shift-tab 
structure?

Thanks, Jim for the guidance.

I was planning to create a function that says if this window is active, then
move to that window, etc. until I run through all of them. I could not yet
think of the mechanics for getting there. I will try the strings suggestion
as I am trying to keep it simple.

Appreciate it.


-----Original Message----- 
From: Snowman
Sent: Tuesday, February 13, 2018 8:12 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Basic tips for creating a tab / Shift-tab
structure?

If you don't want to do this with scripting,  HotSpotClicker has a nice
means of letting you decide the tab order.  It refers to them as
"SpotRings".

But, if you prefer the more stable, scripting method, it' is a matter of
writing a handler for the tab key that basically asks the question,  where
am I focused now, which will also imply, where should I focus next.
There are probably lots of ways of doing that.  And which is most convenient
might come from how it is that you know where you are currently focused.  Is
it a fixed window name?
If so, you could use the name to look up a string which contains the name of
the function to run for setting focus.
One way would be to populate a collection, where the collection key is the
name of the window that has focus, and the value you get from that key is
the string containing the name of the function to run for that condition.
You would need to build the collection when jaws first sees the program, and
then use it there after.
But, you can also do this with simple strings, or a bunch of, if, elif
statements.
It just depends on what is most convenient.






+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: <rodalcidonis@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, February 13, 2018 5:11 PM
Subject: [jawsscripts] Basic tips for creating a tab / Shift-tab structure?


hey Guys:

I have identified 10 windows at random that I want to place in a structured
tab and shift-tab order. I have a function for each window that identifies
and sets focus to the particular window. Any tips on how to get that done
please? I want to stay away from DLG select items in list as I do not yet
fully understand how to implement that code yet.

My goal is to be able to tab around and do what the control permits -- if it
is a button, be able to press it with the enter key, and if it is a text
box, be able to type in it, etc..

Assume that I have named my ten functions as Function 1(), Function 2(),
function 3(), etc..

Thanks for all assistance.



Rod



__________�

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: