[nfbcs] JAWS Scripting Problem
Doug Lee
dgl at dlee.org
Mon Feb 17 21:06:59 UTC 2014
Aha, I think I figured out what's up here...
I think you decided to use 4000 because it was unused in HJConst.jsh,
and you thought you could store your own setting that way.
Unfortunately for this plan, JAWS won't let you change any settings
that are not defined in JAWS itself. The HJConst.jsh values pretty
much list what those are. So setJCFOption(4000, 1) does nothing. You
will have to use another approach, like a global variable or a .ini
file and iniReadInteger/iniWriteInteger() functions, to keep track of
your setting value.
On Mon, Feb 17, 2014 at 12:34:39PM -0800, Nicole Torcolini wrote:
That's the weird thing. It fails silently. The only reason that I knew that
it was failing was because I included a conditional statement to make JAWS
say "No" if it failed and "Yes" if it succeeded. I'll send the snippets in
a little bit as they are on another computer. For now, I made my own file
HJNicoleConst.JSH and put
Const
OPT_IGNORE_KEYBOARD = 4000
For what I am doing, I don't want to use any of the existing setting names.
-----Original Message-----
From: nfbcs [mailto:nfbcs-bounces at nfbnet.org] On Behalf Of Doug Lee
Sent: Monday, February 17, 2014 12:22 PM
To: NFB in Computer Science Mailing List
Subject: Re: [nfbcs] JAWS Scripting Problem
Let us see a code snippet, and/or the actual compiler error message you get,
and an indication of what line of code you land on when you close the error
box. Without at least the last two of those things, it's hard to know what
you're encountering exactly.
Also though, most constants for the first parameter of SetJCFOption() are
already in HJConst.jsh and start with "OPT". You can of course make your own
versions of those if you like, as long as you don't try to include
HJConst.jsh and then redefine one or more constants with names that already
exist in HJConst.jsh. The normal practice, though, is to use the HJConst.jsh
versions when they exist. Example:
setJCFOption(Opt_Punctuation, 2)
On Fri, Feb 14, 2014 at 05:33:26PM -0800, Nicole Torcolini wrote:
I have decided to try writing scripts for JAWS to help solve some of the
problems that I am having with certain programs. However, I am running into
problems. It says not to add to the default HJConst.JSH file, so I created
my own JSH file and put constants in it. That seems to be fine as it is
finding the file and recognizing the constant. However, when I write:
SetJCFOption(A_CONSTANT, aValue)
it fails. Note that those are not the actual names of the parameters. Any
idea what I am doing wrong? Any good resources on this? I have the script
guide, but it's huge, and I can't find anything on this particular problem
in it.
Thanks,
Nicole
_______________________________________________
nfbcs mailing list
nfbcs at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for nfbcs:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/dgl%40dlee.org
--
Doug Lee dgl at dlee.org http://www.dlee.org
SSB BART Group doug.lee at ssbbartgroup.com
http://www.ssbbartgroup.com
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' ('I found it!') but rather 'hmm....
that's funny...'" -- Isaac Asimov
_______________________________________________
nfbcs mailing list
nfbcs at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for nfbcs:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/ntorcolini%40wavecable.co
m
_______________________________________________
nfbcs mailing list
nfbcs at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for nfbcs:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/dgl%40dlee.org
--
Doug Lee dgl at dlee.org http://www.dlee.org
SSB BART Group doug.lee at ssbbartgroup.com http://www.ssbbartgroup.com
No one alive is beyond hope; every second of life is a chance.
(08/29/02)
More information about the NFBCS
mailing list