[jawsscripts] Re: creating a custom listbox

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 26 Mar 2015 08:54:25 -0400

Many lists are navigable via MSAA, UIA, and/or the lv* functions in
the JAWS scripting language; however, the graphics will not be
available by any of those means and will require examination of the
OSM, as you are probably now doing. This is not a problem for short
lists and desktop computers but becomes a challenge when the list can
scroll vertically and when you are dealing with a high-DPI laptop.

If you need to interpret the graphics, the best you can probably do,
without a lot of work and fiddling and accounting for timing issues,
is to loop through lines by sending Home for top of list and then
downArrow for each new line, until you don't move; then parsing the
information from something like getLine() and/or JAWS (or better,
invisible) cursor probing at the graphic at the beginning of the line.

I'm writing this five minutes or so before a meeting and so can't
generate a code snippet in time; but I hope that's enough info for you
to make decisions about how to proceed, and possibly, to write
something usable.

On Wed, Mar 25, 2015 at 03:17:27PM -0400, Jason Fayre wrote:
Hi,
I'm wondering if someone has or can point me at a code snippet to look at.
I'm working on scripting a call center application we use at CNIB. The
good news is I don't need to do much.
One thing I'd like to do is pull the names of the staff and filter
that list by who is currently available or logged in. All the staff
names show up in a listbox that can be navigated with the arrows. JAWS
reads this list correctly. There is a graphic next to the names that
indicates their status. JAWS also reads these graphics (if labeled).
So, what I need to do is parse all the entries in the list and find
the ones that have a certain graphic next to them. The graphics are
spoken when I arrow through the list. I'd then like to present a JAWS
dialog with all those names in a list.
I guess I could  also bring it up in the virtual viewer.
The main thing I can't figure out how to do is step through all the
items in the list in the application and do something with them. Can I
do this by grabbing the list object somehow?
I'm not a scripting expert by any stretch. If I can look at a code
sample, I can usually figure out what it's doing.
Any help would be appreciated.
Thanks!
__________???

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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

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

Other related posts: