[jawsscripts] Re: scripting question

  • From: "Panes, James" <james.panes@xxxxxxx>
  • To: "'jawsscripts@xxxxxxxxxxxxx'" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 28 Jul 2015 13:56:36 +0000

I had the same experience with .INI files. It seems that after a limited number
of reads and writes, the INI file is not written to the hard drive any more.
This is why I wrote a library to manipulate the ini files as strings in memory
and then do a text write to put the result back in the ini file at the end.
This gave me reliable reads and writes and no second guessing.
If you take this approach, I caution you that the JAWS ini functions have a
search routine and do not always pick up the INI style file from the location
that you would expect.
Regards,
James
James Panes | TSARBC IT Accessibility, JAWS Scripting & Royal Class
Toastmasters Club President, Enterprise Architecture Office (EAO) | Technology
& Operations | RBC Royal Bank | 416-348-4214

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Doug Lee
Sent: Tuesday, July 28, 2015 9:49 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: scripting question

Try iniFlush(), but I generally find that writing a lot of things to
an ini file rapidly is not reliable. Never figured out why.

On Tue, Jul 28, 2015 at 08:42:12PM +0700, Dang Manh Cuong wrote:
To all listers
I wrote a script that collects info, write it to an *.ini file, then call
DLGSelectItemInList to display it. the script wrote over 50 line to 5 section
of my Ini file. However, the dialog always displays before completing write to
*.ini file. Although, I set false for each info I collected, accept the last
line. are there any typs, or function to make sure the Ini file has been
successfully written before adding it to DLGSelectItemInList function?
Any help would be appreciated.
-------------------
Dang Manh Cuong
The Assistive technology specialist
Sao Mai Vocational and assistive center for the blind
74/17 Bui Quang La, ward 12, Go Vap Dst, HCMC, Vietnam
Tel: +84862573309
E-mail: vanphong@xxxxxxxxxxxxxxxxxx; congnghe@xxxxxxxxxxxxxxxxxx
Facebook: https://www.facebook.com/SaoMaiCenter
Website: http://www.trungtamsaomai.org; http://www.saomaicenter.org
Mobile / Zalo: +84 902-572-300
E-mail: dangmanhcuong@xxxxxxxxx; cuong@xxxxxxxxxxxxxxxxxx
Yahoo! ID: manhcuong0312
Skype name: dangmanhcuong
facebook: http://facebook.com/dangmanhcuong
Twitter: @ManhCuongTech
Website: http://ngoisaodanduong.com
Projec-Website: http://dangmanhcuong.googlecode.com
__________???

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

--
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________???

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


_______________________________________________________________________
If you received this email in error, please advise the sender (by return email
or otherwise) immediately. You have consented to receive the attached
electronically at the above-noted email address; please retain a copy of this
confirmation for future reference.

Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur
immédiatement, par retour de courriel ou par un autre moyen. Vous avez accepté
de recevoir le(s) document(s) ci-joint(s) par voie électronique à l'adresse
courriel indiquée ci-dessus; veuillez conserver une copie de cette confirmation
pour les fins de reference future.
__________�

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

Other related posts: