[jawsscripts] Re: Verbosity problem, function returns the status in place of help.
- From: Jitendra <jeet.invincible@xxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Sun, 26 Jul 2009 20:17:16 +0530
Hello martin, I read the user options.jss, and then created those
functions.
Const CstrList = "ToggleNumbers: Numbers "
Script AdjustJAWSOptions ()
;a local variable to store the current value.
Var
Int CurNumbers
Let curnumbers = GiNumbers
GetActiveConfiguration ()
If GetJFWVersion () >= 900000 Then
OptionsTreeCore (CstrList)
Else
JAWSVerbosityCore (CstrList)
EndIf
If CurNumbers != giNumbers then
If SaveSettings () Then
SayMessage (OT_HELP, "Saved Settings")
Else
SayMessage (OT_ERROR, "Save Settings Error")
EndIf
EndIf
EndScript
Hope this is the thing you were asking.
Martin Slack wrote: Hi Jitendra, I'm afraid I can't follow what you are
doinghere. Taking the first function below: ToggleNumbersHlp, you pass an
integer to the function as a parameter, yet that value is not used within
thefunction. Also, you do not show us how you call the function, or how you
use the string returned from it. Could you have another go at explaining
whatthe problem is? Martin ----- Original Message ----- From: "Jitendra"
<jeet.invincible@xxxxxxxxx>[1] To: <jawsscripts@xxxxxxxxxxxxx>[2] Sent:
Friday, July 24, 2009 3:11 AM Subject: [jawsscripts] Verbosity problem,
function returns the status in place of help. Hello friends, in the same app
I talked for the number detection, a verbosity problem, which I am unable to
solve. as it is true, that with a toggle function, a function with the same
name suffixing "Hlp should be there in order to display the help text in the
read-only box. if there other ways, let me know please. here is my code, and
if this function does not exist, JAWS does not even report that unknown
function call xxx.hlp. and in the read-only box, it is producing the status
in place of the help text, it seems that this function does not require the
helper function. ;code: Globals Int GiNumbers String Function
ToggleNumbersHlp (int Value) ;Help text to show in the read-only box. Return
"this setting tells JAWS to report the automatic number reading of the
account." EndFunction String Function ToggleNumbers (int Value) If !Value
Then Let GiNumbers = !GiNumbers EndIf If giNumbers Then ;Change the text
thatwill show in the verbosity dialog. Return "on" Else ;Change the text for
the Markers against the item as its state when off to show in the dialog.
Return "Off" EndIf EndFunction Void Function SaveSettings () Var Int Result
Let result = IniWriteInteger ("NumberSettings", "Number", GiAddonAlert,
"App.jcf") Return Result EndFunction Void Function LoadSettings () let
giNumbers = IniReadInteger ("Numbersettings", "Numbers", 1, "App.jcf")
EndFunction Thank you, Jitendra. __________ Visit and contribute to The JAWS
Script Repository http://jawsscripts.com[3] View the list's information and
change your settings at http://www.freelists.org/list/jawsscripts[4]
----------------------------------------------------------------------------
---- No virus found in this incoming message. Checked by AVG -
www.avg.com[5]Version: 8.5.392 / Virus Database: 270.13.25/2256 - Release
Date: 07/23/09 06:02:00 __________ Visit and contribute to The JAWS Script
Repository http://jawsscripts.com[6] View the list's information and change
your settings at http://www.freelists.org/list/jawsscripts[7]
--- Links ---
1 mailto:jeet.invincible@xxxxxxxxx
2 mailto:jawsscripts@xxxxxxxxxxxxx
3 http://jawsscripts.com
4 http://www.freelists.org/list/jawsscripts
5 http://www.avg.com
6 http://jawsscripts.com
7 http://www.freelists.org/list/jawsscripts
__________
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: