[jawsscripts] Re: KeyboardType change

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 10 Mar 2011 18:26:48 -0700

Geoff, I don't see a space anywhere between the quote marks & the
backslashes. It does work reliably. The only time u really need to use
an ini flush is when you're writing, though it doesn't hurt to when
you're reading. Reed, U could save yourself a line of code if u put a
single ini write statement following the endif, not that it's
critical.

I had forgotten that Reed emailed me privately for assistance, & that
my correspondence w/him regarding this didn't go to the list. So it
pretty much jarred me when u asked about it Geoff, till I remembered
why lol. Since I saw he was getting answers, I hadn't really followed
the thread till he hit me up on the private address.

On 3/10/11, Geoff Chapman <gch@xxxxxxxxxxxxxxxx> wrote:
> 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
>
>


-- 
Change the world--1 deed at a time
Jackie McBride
Scripting Classes: http://jawsscripting.lonsdalemedia.org
homePage: www.abletec.serverheaven.net
For technophobes: www.technophoeb.com
__________�

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

Other related posts: