Hi Bruce,
I will put an example below; I like to store my ini file object in a
variable, and then use it for writing in a separate step (I think it's
clearer):
set myINIFile = INIFile("test.ini") ' get my ini file object
myINIFile.text("options", "speak_format_changes") = true ' writes true to
this setting in the [options] section
' above I used the .text property; if you were writing out a numeric value
there's also a .number property you would use to write it with.
hth,
Chip
_____
From: BT [mailto:[email protected]]
Sent: Monday, May 28, 2012 8:06 PM
To: [email protected]
Subject: Re: CursorKeys Object Problem
Hi Chip,
Another question, I was going to instead of doing it there but save the
voice settings in the .ini file.
But, I can read from the file with the ext4eranl program but can not
write to it. There is no assignment property for it, just a read only.
Is ther also a trick to get the .ini file to be written to?
Or does it need to be a shared object?
Bruce
Sent: Monday, May 28, 2012 6:09 PM
Subject: RE: CursorKeys Object Problem
Bruce,
You would have to make your voice settings be set to "program" in order for
you to be able to make changes to them, and have those changes saved with
the .set file. Even so, it's tricky to do via programming so that you get
the changes done correctly.
Chip
_____
From: BT [mailto:[email protected]]
Sent: Monday, May 28, 2012 1:11 PM
To: [email protected]
Subject: Re: CursorKeys Object Problem
Hi Chip and Rick,
I just discovered one little interesting event. I set my Trek game to
load a set file.
Now, the set file name is there each time I run the Trek.exe game since it
is associated with it and doing the Filename thing it gives me that set
file, called Trek.set.
Now, I change settings for any of the 3 keys, Screen, Mouse, or Keyboard, it
saves the Trek.set file settings are saved, I at least say the name.
Now, when running the program again, no changes are in the set file,
nothing.
For when I read the settings they come in as what was there before even
running the game or saving the changed settings.
In other words, nothing is being saved inside the set file.
I even do a RefreshSets command and that did not fix the problem.
So, why is this?
Could this be what you are experiencing Rick?
Bruce