[jawsscripts] Re: question about the default script

  • From: John Covici <covici@xxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 05 Aug 2017 13:47:01 -0400

I think the program already uses a blinking line, I think I had to do
this already.  If I type a character the whole line is spoken, but if
I hit the left arrow it speaks one character but a number of times.

On Sat, 05 Aug 2017 13:03:07 -0400,
Jim Bauer wrote:


Can you configure program display? If so, and if the program is using a block 
cursor, try changing that. You'll have to experiment with different types, 
but I suspect you'll have better results with anything but a block.

On 8/5/2017 10:11 AM, John Covici wrote:
OK, after getting the class name wrong a couple of times, it now
speaks, at least new t4ext coming in.  Now, if I can prevent it from
saying the whole line when I type a key and echoing the character
several times when using the arrow keys, I will be good to go -- at
least for this app.

Thanks, your help is what got me on the right track.

On Fri, 04 Aug 2017 14:02:27 -0400,
Jim Bauer wrote:
You should not change the default scripts in this case, but you can 
partially derive from the default sayNonhighlightedText function to speak 
incoming text automatically. I used this approach to auto-announce text in 
Mintty. Note that this only covers text auto-speaking and will not address 
any other problems such as bad cursor tracking and the like.

First, create a new script (JSS) file for your "take command" application 
and then copy the entire contents of this "terminalBase.txt" file to that 
new JSS file.
https://www.dropbox.com/s/sjpcmtylrvfoxa6/terminalBase.txt?dl=0

Next, change the consoleWindowClass() function so that it returns the 
class of your text display window. So for example, if you found the class 
to be "TakeCommandConsole", you would change the return line from `return 
"minty' to `return "TakeCommandConsole"'.

Finally, compile your new script.

Your mileage may vary.

HTH

On 8/4/2017 12:08 PM, John Covici wrote:
Thanks much, I will poke and see what happens.

On Fri, 04 Aug 2017 12:25:52 -0400,
Chris Nestrud wrote:
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

__________�

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

Other related posts: