[jawsscripts] Re: Saying Non-Highlighted Text
- From: "Homme, James" <james.homme@xxxxxxxxxxxx>
- To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
- Date: Wed, 13 Apr 2011 15:02:49 -0400
Hi Steve,
I have a question about this. In this application, does JAWS actually tell you
that the window that contains the other stuff is a dialog, or is it a window
that acts like a dialog in that it's a window that has other controls in it? If
that is the case, you could try a trick I use on a program or two. You could
use home row mode to grab the class of the window. Then you could use the new
text event function to make your program talk the dialogs. First, I would
reclass the window as a dialog because that would make JAWS tell me that I'm in
a dialog. Here is some sample code.
Void Function NewTextEvent (handle hwnd, string buffer, int nAttributes,
int nTextColor, int nBackgroundColor, int nEcho, string sFrameName)
var
string sClass,
handle hFocus
let sClass = GetWindowClass(hwnd)
let hFocus = GetFocus()
if hwnd != hFocus then
if sClass == wcMessage then; a constant with my class in it
Say (buffer, ot_no_disable)
return
endif
endif
' Now call the default version of this function so that it all works.
NewTextEvent ( hwnd, buffer, nAttributes,
nTextColor, nBackgroundColor, nEcho, sFrameName)
EndFunction
Jim
Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme. NonVisualDevelopment.org: Blind people
can drive computers. Demonstration GUI Programs: You can program GUI's while
blind.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Matzura
Sent: Wednesday, April 13, 2011 9:25 AM
To: jawsscripts
Subject: [jawsscripts] Saying Non-Highlighted Text
I have an application that displays everything in nice standard
dialogs, but the static (explanatory) text in those dialogs is not
highlighted in any way--it's actually color black on gray-75--but I'd
like to have that text spoken for each of the several dialogs in the
program. My question is, do I get the window handle of the portion of
the window containing this text and feed it to SayNonHighlightedText,
or is there a different, better way?
Thanks in advance.
__________???
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
This e-mail and any attachments to it are confidential and are intended solely
for use of the individual or entity to whom they are addressed. If you have
received this e-mail in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not keep, use,
disclose, copy or distribute this e-mail without the author's prior permission.
The views expressed in this e-mail message do not necessarily represent the
views of Highmark Inc., its subsidiaries, or affiliates.
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: