[program-l] Re: Determining path of JFW user settings directory

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "program-l@xxxxxxxxxxxxx" <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 8 Feb 2013 15:51:22 +0000

Hi,
Maybe one solution would be to drop in a script that runs the GetJFWSettings 
function and writes the string to an ini file, then read the value. Or if you 
want to do it by brute force, get the current user and look down through their 
personal directory until you find the roaming folder, then fs, then jaws, then 
highest version, settings, , language, then if you've gotten that far, you have 
found it.

Jim



-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of QuentinC
Sent: Friday, February 08, 2013 9:24 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: Determining path of JFW user settings directory

Hello,

Someone proposed an interesting solution in a french programming
mailing-list.

He says that chaining function in JFWRunFunction works. However, I
tried, and by me it doesn't work.
The trick would be to use IniWriteString and GetJawsSettingsDirectory to
write the desired path in a file; I could then read that file afterwards
in the application.

JFWRunFunctionA("SayString (GetJawsSettingsDirectory ());");
=> here I hear jaws saying: GetJawsSettingsDirectory, and not the
desired path. I conclude out of this, that function chaining is
impossible, while JFWRunFunction works indeed correctly (otherwise I
would have heard nothing). The function GetJawsSettingsDirectory still
exists in jaws script, I have checked.

JFWRunFunctionA("IniWriteString (\"main\", \"path\", \"somevalue\",
\"C:\\\\temp\\\\test.ini\", true);");
=> NO file test.ini appeared in C:\temp, even by removing the final true
parameter, and by trying some bachslash combinations (as I'm not sure if
I have to put 2 or 4 backslashes). It seems that RunFunction is
restricted and only runs with a few of the hole predefined jaws script
functions list.

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

________________________________

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: