Hi Geoff, I've used the script via my hot key several times and it has worked just fine. I see no space between the quote mark and \\. While I don't know anything about it, I'm guessing the IniFlush takes place when my script closes. I really don't need the second IniRead. I just put it there to confirm that my change happened. Reed -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman Sent: March-10-11 4:27 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: KeyboardType change hmmm, so does this work reliably then? I Note there's no useage of any iniFlush or IniFlushEx in this script reed? Also, it might've been incurred during importing email, but, here there appears a space between the quote mark and the two backslashes before the Default.jcf file. is that the case in the real code? and if so, does that still work then? ----- Original Message ----- From: "Reed Poynter" <Reed.Poynter@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Friday, March 11, 2011 5:58 AM Subject: [jawsscripts] KeyboardType change > Hi Geoff, > > Here's my script. > I've assigned WindowsKey+Alt+K to it and It works great. > > Script KeyboardTypeChange () > > var > string sProgramFile, > string sSection, > string sKeyname, > string sDefault, > string sValue > > let sSection = "Options" > let sKeyname = "KeyboardType" > let sDefault = "not found" > let sProgramFile = GetJAWSSettingsDirectory ()+"\\default.jcf" > > let sValue = IniReadString (sSection, sKeyname, sDefault, sProgramFile) > Say ("Change from"+SValue,0,0) > > If SValue == "Desktop" then > let sDefault = "Laptop" > IniWriteString (sSection, sKeyname, sDefault, sProgramFile) > else > let sDefault = "Desktop" > IniWriteString (sSection, sKeyname, sDefault, sProgramFile) > EndIf > > let sValue = IniReadString (sSection, sKeyname, sDefault, sProgramFile) > Say ("to "+SValue,0,0) > > EndScript > > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts