[jawsscripts] a custom sayline script issue, where JAWS should tell the control type and it doesn't.

  • From: Jitendra <jeet.invincible@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 07 Aug 2009 19:32:16 +0530

Hello friends, I have a say line script, and perhaps I may need to 
modify the say next, prior line and say current word script as well, 
because it is needed, but the problem is that: when I issue the say line 
command, it does what it should, but does not tell the control type as 
it previously was doing, and not the control name also. so check it.
Script SayLine ()
If InScheduleDialog () && GetWindowClass (GetCurrentWindow ()) == 
"TimeEdit"then
Let str1 = GetWindowText (GetCurrentWindow (), false)
Let str1 = "The time"+Str1
;Note: the window name here is "set time".
;is it the correct way of calling the same script function, to spell the 
text I want, or I should call it only once.
If IsSameScript () then
SpellString (str1)
Else
SayMessage (OT_no_disable, str1 )
EndIf
Return
;If I don't put a return there, JAWS suffixes "Blank" word after 
performing the default version of sayline script.
Elif inSetMeetingDialog () && GetWindowClass (GetCurrentWindow ()) == 
"Edit" then
Let str1 = GetWindowText (GetCurrentWindow (), false)
;Note: the window prompt for the edit box is: "Set meating" here, and 
control type is "edit" and jaws without MSAA detects it, but sayline 
script doesn't.
Let Str1 = "current meeting time is:"+Str1
If IsSameScript () then
SpellString (str1)
Else
SayMessage (OT_no_disable, str1 )
EndIf
Return
EndIf
PerformScript SayLine()
EndScript
Thank you, Jitendra.

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