[jawsscripts] Re: a graphics issue for the checked and uncheckedstatus,

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 22 Jan 2009 09:43:27 -0500

Perhaps the graphic is not quite in alignment with the text for the
entry.
What happens if you activate the Jaws or invisible cursor, then route
cursor to pc cursor, and then do a  control left arrow?  Will jaws speak
the label for your graphic?  If yes, then you could use 
GetGraphicNameAtPoint to return the label of the graphic.
I wrote the following test script to test this approach.
While focussed on the current listview entry for a message in my email
client, this script:

activates the jaws cursor, 
routes jaws to pc 
moves to the prior graphic
speaks the result of the move 1 if successful or 0 
says the name of the graphic that was moved to.  This will be the label
of the graphic.
 

When I looked up GetGraphicNameAtPoint in the fsdn, there was no
descriptions provided for the required parameters for this function.  It
turns out that GetCursorCol can be used for the first parameter and
getCursorRow can be used for the second parameter.
 
Here is my test function.
 
Script test ()
var int iGraphicFound ; stores the result of the moveToGraphic
function
 
SaveCursor ()
JAWSCursor ()
SaveCursor ()
RouteJAWSToPc ()
let iGraphicFound = MoveToGraphic (graphic_prior, true)
sayinteger (iGraphicFound) 
saystring (GetGraphicNameAtPoint (GetCursorCol (),GetCursorRow ()))
 
EndScript
 
Here is the fsdn entry for GetGraphicNameAtPoint
 
Function: GetGraphicNameAtPoint Description 
This function is used to return the name of the graphic located at the
point specified by the functions two parameters. Returns 
Type: String
Description: Returns the name of the graphic located at the specified
point.
Parameters Param 1: 
Type: Int
Description: No Description
Include: Required
Param 2: 
Type: Int
Description: No Description
Include: Required
Version 
This function is available in the following releases: 
PAC Mate 1.10 and later 
JAWS 4.51 and later 
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 

>>> Jitendra <jeet.invincible@xxxxxxxxx> 11:26 am Wednesday, January
21, 2009 >>>

No, I am sorry, it doesn't
David Farough wrote: Does the GetLine function return the text of your
label
when the listbox has focus? If yes, you could use StringContains in if
logic
to speak checked when appropriate. 

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

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

Other related posts:

  • » [jawsscripts] Re: a graphics issue for the checked and uncheckedstatus, - David Farough