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

  • From: Jitendra Kumar <jeet.invincible@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 15 Feb 2018 17:28:48 +0530

Hello, I am sorry for the scrambled messages, I am working in State
bank of india, and that outlook mail does this always, Jeet and me
Jitendra are the same persons.
the scrambled message was like this:
There are many scripts from doug, which contain a tab module, if he is
willing, he may be able to help you in this regard, below is the
extract from that module.

globals
; Data maintained by this module.
        collection tab___data

int function tab__move(int delta)
; Move forward or backward by one control in tab order.
; "Tab order" here is defined entirely by this function.
; Pass a delta of 1 to move forward and -1 to move backward.
; Returns True on success and False on failure.


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

Steve:

Thanks thanks thanks. That is what I was looking for indeed.

-----Original Message-----
From: Steve Spamer
Sent: Wednesday, February 14, 2018 6:00 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Basic tips for creating a tab / Shift-tab
structure?

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

__________�

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




-- 
Skype:
Jeet.delhi
__________�

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

Other related posts: