[jawsscripts] Re: Verbosity problem, function returns the status in place of help.
- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Sun, 26 Jul 2009 16:44:56 +0100
Hi Jitendra,
My question after your first email in this thread was:
Where do you call the function ToggleNumbersHlp ? Calling this function
would require a line of code like:
Let strVariable = ToggleNumbersHlp (intVariable)
and I still don't see that sort of thing in your latest email, so I'm afraid
I am just as puzzled as before.
Regards, Martin
----- Original Message -----
From: "Jitendra" <jeet.invincible@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, July 26, 2009 3:47 PM
Subject: [jawsscripts] Re: Verbosity problem, function returns the status in
place of help.
> 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
__________
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: