[jawsscripts] Re: FindJAWSSEttingsFile () doesn't create the file

  • From: Csaba Árpádházy-Godo <arpadhazi68.jawsul@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 6 Nov 2022 12:34:15 +0100

Hi Artur!

Thanks for testing it. The description is good. This is how this 
function worked in older JAWS. Even in the very first release of the 
2020 version. In what was published in November 2019. After that, its 
operation changed. Because I am rewriting a macro used with JAWS 2019. 
One that I still used in early 2020 and it worked well.

I knew that the IniWrite... functions create the file. I, on the other 
hand, need an empty text file. This means that I have to override the 
factory default function so that if the original statement does not 
create the file, I create an entry with a dummy IniWriteString() 
function and then delete it with the IniDeleteSection() function. So 
there will be the empty text file.

Chaba


2022. 11. 05. 18:31 keltezéssel, Artur Räpp írta:

Hi,

My JAWS2022 does not create the file. With true it creates the path to 
personal settings folder, with false it creates path to shared folder. Same 
with JAWS 2020. Did not tried with JAWS 17. It seems that the description of 
the function is incorrect.
iniWriteString creates the missing file without problems.

Artur
rtr@xxxxxxxxx

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Csaba ?rp?dh?zy-Godo
Sent: Saturday, November 5, 2022 7:51 AM
To: JAWSScripts List <jawsscripts@xxxxxxxxxxxxx>
Subject: [jawsscripts] FindJAWSSEttingsFile () doesn't create the file

Hi scripters,

is there a way that the FindJAWSSettingsFile() function has changed in JAWS 
2022?

According to FSDN, the function declaration is:

string Function FindJAWSSettingsFile (string FileName, optional int
CreateFile)

If the specified file exists either in the user's or the shared directory, 
the function returns the full path to the file. If the second, optional 
parameter is TRUE, the function should create the file in the user directory 
if it does not exist there. This last option doesn't seem to work for me. No 
matter how much I instruct the function to create, the file is not created.

This is the line of instructions in my function:

sFile = FindJAWSSettingsFile("XMon.ini", TRUE)

If the file exists in the user directory, the function returns the path to 
the file. If it doesn't exist, it won't create it.

Can someone test it for me if it works for on other machine?

Thanks in advance!

Chaba

__________

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: