[jawsscripts] Re: script hot key not working

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 02 Mar 2009 13:57:28 -0500

Hi Ann:

You should try a few things to debug your scripts to see if you are
getting any results from these functions.

Try putting a sayString at the top of your RetrieveStaticText function.
 That way you will know if this function is ever called.

Also in this function you set the hwnd handle to the value of
GetFirstWindow (GetFocus())

It would be a good idea to find out if hwnd is set to anything other
than zero.  You might try Sayinteger(hwnd) following the let statement.

everything else in this function depends on you being able to find the
handle for the first window.  Therefore, You might want to use an if
statement to make sure that you can get the handle for that first
window.

You could use the following after the let statement.

if (hwnd) then 
;   statements for true value when you get the handle
else
;   statements for false path when handle is not found.
endif

In your  SayStaticText  script 
you check to see if the window type returned from 
If GetWindowSubtypeCode (GetFirstWindow (hWnd)) == WT_READONLYEDIT Then
;=43
You should put a saystring prior to the return statement so that you
know when you terminate the script early.

These things may give you a better idea what is going on.


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 

>>> "Ann Medlar" <amedlar1@xxxxxxxxxxx> 12:53 pm Monday, March 02, 2009
>>>
Hi all,
Below is my script which I have compiled on PC.  I am using Windows XP
and
Jaws 10.x.
I compiled script below but when I launch AVG and press control+m to
invoke
script I just get a beep from windows and do not get message press
escape to close.
Any help is appreciated.

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