[jawsscripts] A script for a results listbox!

  • From: "Mailing Lists" <traynor.pj@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 30 Aug 2009 19:29:06 +0100

Hi Folks,

I am trying to make a script that will do something like the following for
me. It is a small file search program called Agent Ransack and I want to be
able to jump into the list of results once I have started a search for
particular files on my hard drive. These files can be any such as ".doc,
.xls Etc"
When you have gotten a list of results back, you cannot just tab key into
the list view and arrow through them. I am trying to create a jaws script
that will allow me to jump into the list when the search results come back
to me.
The listbox itself has a class of "listbox32"

I feel embarrassed showing you my script below as I feel it is probably not
in any way too well thought out or written up but maybe someone could advise
me on how to fix it so that I can get to this listbox. While I am getting
focus of the listbox itself, jaws is not actually getting anywhere by
leftmouse button on it like I have written into my script. I have identified
where the leftmouseButton click is hitting and its some kind of label called
"Contents View" which is just a label and doesn't highlight the contents of
the actual listbox when it is clicked on.

Here is my attempt:

Script ListOfResults ()
Var
Handle hWND,
Handle hListview
Let hWND = GetAppMainWindow (GetCurrentWindow()) Let hListview = GetFocus()
PCCursor()
SaveCursor()
If GetFocus () == hListview then
LeftMouseButton()
SayFormattedMessage(OT_NO_Disable,"List of results","") EndIf

EndScript

__________ 
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: