[jawsscripts] Focus issue with jaws

Hello  Friends,
I am trying to script an application, but I face a  focus issue with jaws.
When I press the applications menu , the menu pops up , jaws reads out the item 
in the menu, along with the
items in the previous window.
I  paste the code below , which doesn't seem to work.
Please, help me to solve the problem.
Include "HjGlobal.jsh" ; default HJ global variables 
 Include "hjconst.jsh" ; default HJ constants 
 Void Function SayHighlightedText (handle hwnd, string buffer, int nTextColor)
var 
int iControl
Let hwnd = GetFocus ()
let iControl = GetControlID (hwnd)
If (iControl == 0 ) then
Return
EndIf
EndFunction


Function SayNonHighlightedText ()
var 
Handle HWnd,
int iControl
Let hwnd = GetFocus ()
let iControl = GetControlID (hwnd)
If (iControl == 27 ) then
Return
EndIf


EndFunction


 
 Visit.
http://www.ultrauniverse.co.cc
Experience the ultimate!, beyond borders. 

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