[jawsscripts] Re: How to make TFDCheckListBox readable by JAWS?

 
Hello sir, thank you very much and sorry for getting delayed, as my pc's
smpsblasted, and I just have installed a new one, have read your mail, and
tested the following:
Int Function sayListState ()
var
    handle hwnd,
    int typeCode,
    string wclass,
String Text1
let hwnd = getFocus()
let typeCode = getWindowTypeCode(hwnd)
let wclass = getWindowClass(hwnd)
if wclass == "TFDCheckListBox" then
Let Text1 = GetChunk ()
SayUsingVoice (Vctx_message, Text1, Ot_string )
this text1 variable reads nothing as expected, say chunk works instead!
May be I have tested wrongly, but get chunk doesn't read states like:
"Checked", or notchecked.
;    sayChunk()
    sayMessage(OT_Position, positionInGroup())
    return True
endIf
return False
EndFunction
And By the way, I did not find  any function written as: 
SayObjectActiveItem in default.jss, though some calls to it were found, but
as I have never seen any such example, of that function, I may not be pretty
sure how to create one. Thank you very much. so now, what I do with it?
DavidFarough wrote: I forgot to mention how you need to define the
SayObjectActiveItem function. it requires one input parameter defined as
integer. You pass the function either a true or false value. Here is the
callwhich appears in my ActiveItemChangedEvent. SayObjectActiveItem( FALSE )
Here are a couple of things you can try. If the SayChunk function provides
you the information that you need, You could probably use the GetChunk
function to load that information into a string Variable. This is supposed
toreturn text and graphic labels. Don't forget when using the StringContains
function, that this function is case sensitive. so be sure that you know
exactly how the text of the graphic that you are looking for appears. Have
you reclassified this control as a listView, ListBox or MultiSelect Listbox?
If Yes, You may be able to get this to work if you create a
SayObjectActiveItem function in your scripts. If you look in the default
scripts in the ActiveItemChangedEvent You will see that this function calls
the SayObjectActiveItem function for handling of listviews etc. I should
alsomention that I noticed this in the version 10 default scripts. If this
approach works for you, you should not need to put this code in the
SayNextLine SayPriorLine etc. because this code will run each time you move
to a different item in the list. be sure to put a call to this function at
the end of your function so that all the other controls will work properly.
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[1]
Tel./ Tél: (613) 992-2779 Jitendra <jeet.invincible@xxxxxxxxx>[2] 12:04 am
Monday, September 22, 2008 >>>Hello and thank you david sir, I tried the if
string contains functions on the getline, did nothing. but now including
jacky and all wanting the solution to this problem: following code works!
;code var handle hwnd, int theTypeCode, string winclass let hwnd =
getFocus()let TheTypeCode = getWindowTypeCode(hwnd) let WinClass =
getWindowClass(hwnd) if WinClass == "TFDCheckListBox" then sayChunk()
sayMessage(OT_Position, positionInGroup()) return True endIf return False
EndFunction Now, I am willing to know, as I tried it with a test debug
script, and it was working as expected. how should I write the code, if I
want jaws to say the checked and unchecked status of the items when we move
by arrow keys, tab, shift+Tab, insert+Tab, page up down, home, end, home and
end keys with CTRL and the spaceBar key, and if left any other? Another
question: in a list view, something is written in bold, and that is to be
called by jaws: "Breakpoint", and that is simple, should be called: "Plain",
how shouldwe do this, what functions I need to write, and how many other
scripts I need to modify if want accessibility with keys above in previous
code script? HTH, Thank you. David Farough wrote: You could try focusing on
the listbox and see if the GetLine function will return the corner or
Checkmark text strings. If yes, then you can make Jaws speak the Checkmark
when checkmark is found. 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[3][1] Tel./ Tél: (613) 992-2779 Jitendra
<jeet.invincible@xxxxxxxxx>[4][2] 11:57 pm Saturday, September 20, 2008
>>>Wow, no graphics as such, but when unchecked,A graphic "called Corner" is
detected by jaws cursor, andwhen checked, another graphic: "Checkmark"
found!now what? You wrote: Well, who knows, Jitendra. There's a couple
thingsto try: a) reclass as a multiselect listbox; b) Turn on graphics &see
if there's a graphic that changes whether an object is checked/unchecked.
Havin said that,I have a program that does the same thing &I've never been
able to fix it. So there aren't any guarantees. Good luck. On 9/20/08,
Jitendra <jeet.invincible@xxxxxxxxx>[5][3][1]wrote: Hello friends, there is
aclass name below, TFDCheckListBox it contains Items, that are checkable,
butproblem is:JAWS doesn't anounce the state checked or unchecked of any
itemfound in it, MSAA returns nothing perhaps, as when I press f9 key after
setting the output mode to tell state of the item, in homerow mode, it says:
"selected", in both states of the item, HTH, help me please. Thank you,
Jitendra. __________ Visit and contribute to The JAWS Script Repository
http://jawsscripts.com[6][4][2] View the list's information and change your
settings at http://www.freelists.org/list/jawsscripts[7][5][3] --- Links ---
1 mailto:jeet.invincible@xxxxxxxxx[8][6] 2 http://jawsscripts.com[9][7] 3
http://www.freelists.org/list/jawsscripts[10][8] __________ Visit and
contribute to The JAWS Script Repository http://jawsscripts.com[11][9] View
the list's information and change your settings at
http://www.freelists.org/list/jawsscripts[12][10] 100 Years Merits a
Celebration!http://www.psc-cfp.gc.ca/100/index-eng.htm[13][11] 100 ans, ça
mériteune célébration! http://www.psc-cfp.gc.ca/100/index-fra.htm[14][12]
__________ Visit and contribute to The JAWS Script Repository
http://jawsscripts.com[15][13] View the list's information and change your
settings at http://www.freelists.org/list/jawsscripts[16][14] --- Links ---
1mailto:David.Farough@xxxxxxxxxxxxx[17] 2
mailto:jeet.invincible@xxxxxxxxx[18]3 mailto:jeet.invincible@xxxxxxxxx[19] 4
http://jawsscripts.com[20] 5 http://www.freelists.org/list/jawsscripts[21] 6
mailto:jeet.invincible@xxxxxxxxx[22] 7 http://jawsscripts.com[23] 8
http://www.freelists.org/list/jawsscripts[24] 9 http://jawsscripts.com[25]
10http://www.freelists.org/list/jawsscripts[26] 11
http://www.psc-cfp.gc.ca/100/index-eng.htm[27] 12
http://www.psc-cfp.gc.ca/100/index-fra.htm[28] 13 http://jawsscripts.com[29]
14 http://www.freelists.org/list/jawsscripts[30] __________ Visit and
contribute to The JAWS Script Repository http://jawsscripts.com[31] View the
list's information and change your settings at
http://www.freelists.org/list/jawsscripts[32] 100 Years Merits a
Celebration!http://www.psc-cfp.gc.ca/100/index-eng.htm[33] 100 ans, ça
mériteune célébration! http://www.psc-cfp.gc.ca/100/index-fra.htm[34]
__________  Visit and contribute to The JAWS Script Repository
http://jawsscripts.com[35] View the list's information and change your
settings at http://www.freelists.org/list/jawsscripts[36] 


--- Links ---
   1 mailto:David.Farough@xxxxxxxxxxxxx
   2 mailto:jeet.invincible@xxxxxxxxx
   3 mailto:David.Farough@xxxxxxxxxxxxx
   4 mailto:jeet.invincible@xxxxxxxxx
   5 mailto:jeet.invincible@xxxxxxxxx
   6 http://jawsscripts.com
   7 http://www.freelists.org/list/jawsscripts
   8 mailto:jeet.invincible@xxxxxxxxx
   9 http://jawsscripts.com
  10 http://www.freelists.org/list/jawsscripts
  11 http://jawsscripts.com
  12 http://www.freelists.org/list/jawsscripts
  13 http://www.psc-cfp.gc.ca/100/index-eng.htm
  14 http://www.psc-cfp.gc.ca/100/index-fra.htm
  15 http://jawsscripts.com
  16 http://www.freelists.org/list/jawsscripts
  17 mailto:David.Farough@xxxxxxxxxxxxx
  18 mailto:jeet.invincible@xxxxxxxxx
  19 mailto:jeet.invincible@xxxxxxxxx
  20 http://jawsscripts.com
  21 http://www.freelists.org/list/jawsscripts
  22 mailto:jeet.invincible@xxxxxxxxx
  23 http://jawsscripts.com
  24 http://www.freelists.org/list/jawsscripts
  25 http://jawsscripts.com
  26 http://www.freelists.org/list/jawsscripts
  27 http://www.psc-cfp.gc.ca/100/index-eng.htm
  28 http://www.psc-cfp.gc.ca/100/index-fra.htm
  29 http://jawsscripts.com
  30 http://www.freelists.org/list/jawsscripts
  31 http://jawsscripts.com
  32 http://www.freelists.org/list/jawsscripts
  33 http://www.psc-cfp.gc.ca/100/index-eng.htm
  34 http://www.psc-cfp.gc.ca/100/index-fra.htm
  35 http://jawsscripts.com
  36 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: