[jawsscripts] Re: Writing to an ini file in XP

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 20 Jun 2009 00:03:49 +0100

Is any element of the file path longer than 8 characters, or does any 
element contain spaces?  Those can cause trouble with the Run function under 
XP.  The workaround is to quote the string, or to express it in short name 
format.  I don't know enough about the ini functions to say whether the same 
caveat applies.

  hth

Martin



----- Original Message ----- 
From: "Brian Hartgen" <jaws@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, June 19, 2009 9:59 PM
Subject: [jawsscripts] Writing to an ini file in XP


> Hi
>
> I am trying to write a string to an ini file with jaws using Windows XP.
>
> This function gets the user account of the person logged onto the host
> computer and writes a string to an ini file stored in a folder there.
>
> Using Vista, this function works perfectly well and I get good results 
> every
> time I use it. However, with XP, the ini file is not created the first 
> time
> or the string written to it subsequently.  Has anyone any idea why the 
> file
> cannot be written to with XP please?
>
> The function is below.  Incidentally, the MSG3 reference relates to the 
> end
> of the file path which is
> \\mctwit\\mctwit.ini
>
> If I copy the string to the clipboard, or have it spelled out, the path
> retrieved is perfect.  The file is just not written to with XP. Similarly 
> if
> I use the run function, the file is not run if it exists.
>
> Function DisableSpeech ()
> let a = GetUserSettingsDirectory ()
> let a = StringReplaceSubstrings (a, MSG1, MSG2)
> let iSegment = StringSegmentIndex (a, a, "Freedom", false)
> let ISegment = ISegment - 3
> let a = SubString (a, 1, ISegment)
> let a = a+MSG3
> IniWriteString ("Configuration", "EnhancedSpeech", "n", a, true)
>
>
>
> EndFunction
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09 
06:53:00

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: