[jawsscripts] Re: HSC remembering the statice of graphics

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 02 Jun 2009 10:01:48 -0400

You would be able to do this if you defined global integer variables to
hold the status for the buttons you are clicking.  You would be able to
toggle this status by defining a post processing function to be
performed following the activation of the hotspot for the button.  To
associate a post processing function to a hotspot, you use the control
+alt+shift+f3 key.  Additionally, you can use the prompting
functionality available in HSC to perform a custom function when a
particular control gets focus.  The keystrokes required to access this
functionality are control + alt + shift +P.  You may be prompted  to
modify the processing in the HandleCustomWindows function if this has
not already been done.  You will be presented the following message if
this is required.

The function which detects focus changes, HSCCheckforPrompt, does not
appear to be 
activating as your application focus moves around.  
This function needs to be called from your application script file.  
Write a function in your script file that looks like this:

int Function HandleCustomWindows (handle hFocus)
if (HSCCheckForPrompt (hFocus)) then
        ; a prompt exists for this window
        ; if you specify a processing function for the prompt, it can
say the window contents.  So we are done.
        return(1)  ; indicate that we took care of it
Endif
; include any other logic you need for other purposes
; return 1 if you don't want jaws default processing to do any more
speaking
return(0)  ; means we did not handle this window, so jaws should take
care of it itself
EndFunction

You can copy and paste the above example as a starting point.
JAWS will automatically call this function when focus changes.   
Press escape to close this message 

There is plenty of information about this and other functionality in
the HotSpot Clicker documentation.
HTH

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 
__________�
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: