[jawsscripts] Re: question about the default script

  • From: Chris Nestrud <ccn@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 4 Aug 2017 11:25:52 -0500

Doug Lee's BX scripts can be found here:

BX, the JAWS Toolbox

http://www.dlee.org/bx/

Chris

On Fri, Aug 04, 2017 at 12:17:28PM -0400, John Covici wrote:

Thanks for your response -- I thought of the default script because
when I am in a command prompt, insert-q says the default script is
loaded, but the behavior is different, i.e. much more is spoken.

Where can I get the Dog Lee's bx or Skype script?

Thanks again.

On Fri, 04 Aug 2017 11:29:19 -0400,
Jonathan Cohn wrote:

You should not be playing with the default scripts in this case. If you are
in the takeCommand program and start the script editor program it will
create a script for you for the Take Command program.  In general JAWS will
do the following when attempting to execute a script or function:
1. Look in the local scripts area
2. Look in the defaults script area
3. Look in the builtin area.
So for example if you press a key while JAWS is running then the
"KeyPressedEvent" function will be executed. There is a basic
KeyPressedEvent function in default.jss but if that behavior  does not work
well for you, then you would write a KeyPressedEvent function with exactly
the same arguments as the one in default.jss and place it in your apps JSS
file, generally this is written in the following style:
Function KeyPressedEvent(arguments)
var string WindowName = GetWindowName(GetFocus())
...
if SpecialCondition1() then
  ProcessSpecialCondition1()
elsie SpecialCondition2() then
  ProcessSpecialCondition2()
else ; default to standard processing
KeyPressedEvent(arguments)
end if
end function

A very useful command when developing scripts is the insert-Q because this
will let you know if an application script is present.

In general it is best to avoid changing default script unless you are
working with a non-foreground application, other is something universal
that you want to modify. Perhaps you want to emulate the behavior  of the
numeric keypad in WindowEyes in JAWS. In order to do this you would need
scripts that switch to jaws-cursor and then do cursor movement functions.
Since you would want this behavior in 99% of your programs it would make
sense to apply these changes to the default file. If you do something like
this take a look at Dog Lee's bx or Skype scripts as they have a process to
make a personalized version of default with out needing to re-built the
scripts for each new version of JAWS that is released.




On Fri, Aug 4, 2017 at 2:52 AM John Covici <covici@xxxxxxxxxxxxxx> wrote:

Hi.  I am new to Jaws Scripting, soplease bear with me.  I have been
using WiindowEyes for many years and the only way I can figure out how
to get Jaws to work the way I would like is to modify or write some
scripts.  I have been reading the documentation as well, but the
question I have would probably not be there.

So, my first question is that I notice that when I go into a command
prompt, Jaws speaks the prompt and I can move the cursor on the line,
etc.  Now, it looks like the default script is being used.  I have
another program called Take Command which I like to use in Windows,
sort of like command prompt on steroids.  So, my question is how to
change the default script to do the same thing with this take command
as it does with the cmd.exe?  I tried just using jaws-s, but that
gives me the whole line when I type each character, so that did not
work well for me.

Any assistance or pointers would be appreciated.

--
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@xxxxxxxxxxxxxx
__________???

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



__________???

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


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@xxxxxxxxxxxxxx
__________???

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

__________�

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

Other related posts: