Hi Mike, This corner of JAWS functionality is well outside my experience, so I will have a read of what you sent. Many Thanks, Martin ----- Original Message ----- From: "Mike O'Brien" <mike23432@xxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Sunday, July 26, 2009 7:22 PM Subject: [jawsscripts] Re: Verbosity problem, function returns the status in place of help. > Hi Jitendra, and Martin > > The ToggleFunction and ToggleFunctionHlp functions are called from the > OptionsTreeCore which is the function that creates and processes the list > of > the application and JAWS settings that can be changed. To include > application options in this list, the application would have a script that > is invoked for the JAWSKEY+V keys. This script calls the JAWS > OptionsTreeCore function in JAWS 9 and above. This call passes a list > that > contains an entry for each setting that can be toggled. the entry has the > format ToggleFunction name colon description to be included in the list. > The entries in this list are separated by the vertical bar character. for > example > > let list = ("ToggleFunction1:Description1|ToggleFunction2:description2") > > When the list of options is displayed, each item will have the supplied > description followed by the current setting. Below this list is a read > only > text area that contains a more detailed description for the list item that > currently has focus. You can get to this area by tabbing forward from the > list. This text is supplied by the ToggleFunctionHlp function. The > ToggleFunctionHlp function is only called when it's item has focus, such > as > when you arrow down to it. For me, in the latest build of JAWS 10, I hear > the unknown function call when I arrow down to an item that does not have > the HLP function. > > Mike > > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx]On Behalf Of Martin Slack > Sent: Sunday, July 26, 2009 11:45 AM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: Verbosity problem, function returns the > status in place of help. > > > 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 > //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 > //www.freelists.org/list/jawsscripts > -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.31/2264 - Release Date: 07/26/09 11:07:00 __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts