[jawsscripts] Re: Bible Pane

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: "JAWS Scripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 27 Aug 2009 10:04:26 -0400

Hi Dean:

I'll answer your second question first since the question is easier to
answer quickly.

You could try using IsWindowVisible or IsWindowObscured to determine
whether or not to read the window.

Now for the BookPane script.

You open the script with a very complicated nested function call.  It's
a bit difficult to get my head around it to determine if the logic is
right.  My feeling is that you are trying to do too much within a single
function call.  I would suggest braking it up into manageable pieces. 
this provides you the opportunity to verify that you are able to obtain
the handle for each window in the function call.  This will allow you to
determine if there is a problem with the logic you are using.

I also noticed that the first part of this function call was two
GetNextWindow function calls.  This would indicate that you always
expect to be in the same window each time the script is called.  You
might want to code some alternative processing if the desired window is
not found.

You should create some handle variables to store the results of these
function calls.  Then some sayinteger functions to speak the results of
these function calls.  This should help you isolate your problems.
HTH

David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 

>>> "Dean Masters" <dwmasters@xxxxxxxxxxxxx> 09:36 pm Wednesday, August
26, 2009 >>>
I am trying to work with the SwordSearcher bible software. It has a lot
of 
keystrokes built into it but there are things that could be done to
make it 
more accessible. One thing is that there are different panes. If you
hit F10 
the bible pane is maximized and all other panes are hidden. If F10 is
hit 
again the Bible Pane is hidden.

I was trying to get it so that the invisible cursor went to that pane
and 
read it when the shortcut key was hit. Sometimes it reads parts of the

parent windows but it never reads the whole pane.

A parent window is the TBiblePane. In home row mode if you go down two

windows, over two windows, down two windows then over two windows you
find 
the TPaintPanel which is where the text is. Here is the script I have 
written which might read some of the text:

Script BookPane ()

DoAndSayCurrentKeystroke (); function I created that does what it says

JAWSCursor ()

MoveToWindow(GetNextWindow (GetNextWindow (GetFirstChild (GetFirstChild

(GetNextWindow (GetNextWindow (GetFirstChild (GetFirstChild 
(FindDescendantWindow (GetAppMainWindow (GetCurrentWindow ()), 
id_Bible))))))))))

Delay (5, false)

RouteInvisibleToJAWS ()

InvisibleCursor ()

SetRestriction (RestrictWindow)

SayAll ()

EndScript


It seems like the hierarchy is always there even if the pane is hidden
so I 
can't figure out how to tell it when to read and when not to read.

Thanks for all ideas,
Dean 


__________ 
Visit and contribute to The JAWS Script Repository
http://jawsscripts.com 

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

__________�
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: