[jawsscripts] Re: Please? Re: Re: Reading or writing entries in external ini files?

Hi Jeet,

 I am using JAWS 8, and I find that, although the documentation says that
you can use a simple filename, the iniWriteInteger function will apparently
not work unless you specify a full path for the file.  This means that you
have to take care to escape the backslashes in the full path.  Have a look
at the code below, play around with the values of all the variables and see
if you can see how everything works.

Some of the long lines will have been wrapped.

 Martin...

Script test ()
Var
   string filename,
   string sectionname,
   string keyname,
   int number,
   int returnValue

let filename = "c:\\integerFile"
let sectionname = "sectionOne"
let keyname = "keyOne"
let number = 123
let returnValue = IniWriteInteger (sectionname, keyname, number, filename,
true)

MessageBox ("number of digits written = " + IntToString (returnValue))

let keyname = "keyTwo"
let number = 456
IniWriteInteger (sectionname, keyname, number, filename, true)

let sectionname = "sectionTwo"
let keyname = "keyOne"
let number = 7890
IniWriteInteger (sectionname, keyname, number, filename, true)

let keyname = "keyTwo"
let number = 8765
IniWriteInteger (sectionname, keyname, number, filename, true)

let filename = "c:\\integerFile"
let sectionname = "sectionTwo"
let keyname = "keyTwo"
let number = IniReadInteger (sectionname, keyname, 999, filename)

MessageBox (filename + "\n" + sectionname + "\n" +
keyname + " = " + IntToString (number))

EndScript

----- Original Message ----- From: "Jeet" <LoveForAll@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, February 14, 2008 6:55 AM
Subject: [jawsscripts] Please? Re: Re: Reading or writing entries in
external ini files?


Hello martin and others,
I tryed, no luck, could any of you plant the modified code for me?
that shows how to read or write entries in app specific ini's
--
Contact:
Direct-cell: +919213153776
Skype:
Jeet.delhi
"The Scourge Of Authoritarianism Is Intellectualism."

---snip---

__________ 
View the list's information and change your settings at http://www.freelists.org/list/jawsscripts

Other related posts: