[jawsscripts] Re: Suggestion for a script reading button names bassed on id's

  • From: Jitendra <jeet.invincible@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 21 Apr 2008 08:20:23 +0530

Hello, it fires, and says "99" without the Wt_Button.
my function:
Void Function SayObjectTypeAndText ()
IndicateControlType (WT_Button, Sbutton, "")
;SayInteger (99)
EndFunction
Shall I put all the codes below in the above function?
and then, what should I do with say scripts?
like say line, prior and next line and character and pageup and down scripts?
to make them read the buttons, or they ownner the object function?
;codes from the function: read button names.
Var
Int CID ;control id of the current window.
Let Cid = GetControlID (GetCurrentWindow ())
If CID == ID_Button1 then
Let Sbutton = button1
Elif Cid == ID_Button2 then
Let sbutton = Button2
Elif Cid == ID_Button3 then
Let sbutton = Button3
Elif Cid == ID_Button4 then
Let sbutton = Button4
Elif Cid == ID_Button5 then
Let sbutton = Button5
Elif Cid == ID_Button6 then
Let sbutton = Button6
Else
Let Sbutton = ""
EndIf
Thanks.
you wrote:
Place the following line in SayObjectTypeAndText, then tab onto the button and see if it says "99".

SayInteger(99)
If it does, then SayObjectTypeAndText does fire.


Thanks,
Dennis Brown
----- Original Message ----- From: "Jitendra" <jeet.invincible@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, April 20, 2008 6:29 AM
Subject: [jawsscripts] Re: Suggestion for a script reading button names bassed on id's


First, sorry for getting delayed, As I was unable to get mails from the list,
and now, How should I check  that SayObjectTypeAndText fires or not?
but I did IndicateControlType(wt_button,SButton," ")
without checking weather it fires or not, and JAWS said: "Copy DVD button, button."
Thanks,
You wrote:
Off the top of my head, I'd say see if SayObjectTypeAndText fires when you move onto the button. If it does, you can put your function call in there for automatic processing, and then call SayObjectTypeAndText from SayLine, for those times you are already on the button. As far as having it give type and all, replace the following line of code with the example: Your code:
SayMessage (ot_String, SButton)
New line:
IndicateControlType(wt_button,SButton," ")
Hope this helps!
Thanks,
Dennis Brown
----- Original Message ----- From: "Jeet" <LoveForAll@xxxxxxxxxxxxxx> To: "JawsScriptsList" <JawsScripts@xxxxxxxxxxxxx>
Sent: Wednesday, April 02, 2008 2:20 AM
Subject: [jawsscripts] Suggestion for a script reading button names bassed on id's
block quote
Hello friends, in a software, jaws doesn't read the button names, just says: "Button, Button and so on". so, as I found the control ID of each button was different. I created a function to read them, Void Function ReadButtonNames ()
Var
;String SButton,
;this variable is global, so now disabled in script.
Int CID ;control id of the current window.
Let Cid = GetControlID (GetCurrentWindow ())
If CID == "21000" then
Let Sbutton = "Copy DVD"
SayMessage (ot_String, SButton)
Else
Let Sbutton = ""
EndIf
Return SButton
EndFunction
so now, I will include more buttons there, but first I need to creat a say line script that spels and read the button name. how should I go,
and was this function correct?
in fact, it is reading the name, but not indicating the window type (Button). it says:
"Copy DVD"
instead of "Copy DVD button".
--
Contact:
Direct-cell:  +919213153776
Skype:
Jeet.delhi
"The Scourge Of Authoritarianism Is Intellectualism."

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



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



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

Other related posts: