[audacity4blind] Re: JAWS scripts "beta" version-- again

  • From: Gary Campbell <campg2003@xxxxxxxxx>
  • To: audacity4blind@xxxxxxxxxxxxx
  • Date: Thu, 1 Oct 2015 10:47:41 -0600

Hi Cuong,

I think that would make the installer too closely coupled to Audacity file formats. I think they should be able to handle step-by-sstep instructions to do that. There isn't any help provided for sighted users, and I imagine there are beginning sighted users with the same (lack of) skills. I think instructions similar to those in my message should be enough.

Thoughts anyone? Any suggestions for improving the instructions?

On another subject, I have been working on trying to get JAWS's notion of the current track name to be updated after operations where it isn't now. I tried refreshing the window and MSAA when focus leaves a menu. That works for Track > Remove Track, but for renaming it speaks the old track name followed by the new one. There are two focus changes that occur when the window is refreshed, and I haven't been able to tell when that is going to happen so I can't silence the first one. (Of course, that doesn't happen if you don't actually change the track name!) So either we leave it as is or we get unnecessary speech after a track rename. I might be able to do something like:
When focus changes from the Rename edit to the track panel silence the first SayFocus, and speak the second one. If there isn't a second focus change within a short time then say the track name.
That would possibly cause a delay after renaming, and I'm not sure what else. What do you think?

Thanks.

Gary


On 9/29/2015 9:07 PM, Dang Manh Cuong wrote:

Hi Garry and list
Do you think of adding the keystroke using the installation of Jaws script? I think there are some people who beginner in computer skill, and they might have difficulty to setup keystroke for moving track up / down. If you think it useful, we can make an option to add keystroke to Audacity config file during the installation of Jaws script
Cuong.
-------------------
Dang Manh Cuong
The Assistive technology specialist
Sao Mai Vocational and assistive center for the blind
74/17 Bui Quang La, ward 12, Go Vap Dst, HCMC, Vietnam
Tel: +84862573309
E-mail: vanphong@xxxxxxxxxxxxxxxxxx <mailto:vanphong@xxxxxxxxxxxxxxxxxx>; congnghe@xxxxxxxxxxxxxxxxxx <mailto:congnghe@xxxxxxxxxxxxxxxxxx>
Facebook: https://www.facebook.com/SaoMaiCenter
Website: http://www.trungtamsaomai.org; http://www.saomaicenter.org
Mobile / Zalo: +84 902-572-300
E-mail: dangmanhcuong@xxxxxxxxx <mailto:dangmanhcuong@xxxxxxxxx>; cuong@xxxxxxxxxxxxxxxxxx <mailto:cuong@xxxxxxxxxxxxxxxxxx>
Yahoo! ID: manhcuong0312
Skype name: dangmanhcuong
facebook: http://facebook.com/dangmanhcuong
Twitter: @ManhCuongTech
Projec-Website: http://dangmanhcuong.googlecode.c

----- Original Message -----
*From:* Gary Campbell <mailto:campg2003@xxxxxxxxx>
*To:* audacity4blind@xxxxxxxxxxxxx
*Sent:* Wednesday, September 30, 2015 6:19 AM
*Subject:* [audacity4blind] JAWS scripts "beta" version-- again

Hi again,

I have changed the keys that move a track up and down to
Control+Shift+Up/DownArrow. The scripts did work, but
Open/CloseListBox did not work properly. The files audacity.jkm,
audacity.jsd, and audacity.jss have changed. I include the others
for completeness. The corrected version of the previous message
follows.

---------

It has been a long time since we have released a new version of
the scripts, but there has been on-going development. Theu de
thuong will update the Vietnamese translation of the README file
when she isn't busy with schoolwork. Fernando Gregoire has
provided a Spanish translation of the messages and some other
things. He will update them for the new version. (I probably
should have sent the v2.0 translation out-- I thought we'd have
something out before now and I have been trying to figure out how
to incorporate them into the installer-- I think it's going to be
pretty simple and manual for now.)

I am attaching files of a "beta" version of the scripts for those
of you who want to live on the edge to try out. To install them:


1. Back up your current script files!
2. Put the new files in your scripts folder.
3. run Audacity
4. open Script Manager (JAWSKey+f2)
5. compile them by pressing CTRL+s.
6. Close Script Manager.


For this to work, the Control+Shift+UpArrow and
Control+Shift+DownArrow keys must be assigned to the Audacity
commands that move a track up and down. To do this:

1. In Audacity open Preferences (CTRL+p) and go to the Keyboard
category (press k).
2. Tab to the edit box and enter "move focused" (I'm using tree
view).
3. Tab to the tree view and find Move focused track down.
4. Press TAB to the Shortcut field and press
Control+Shift+DownArrow.
5. Press TAB to the Set button and press SPACE to activate it.
6. Press Shift+TAB twice to move back to the tree view.
7. Find the Move focused track up command and assign
Control+Shift+UpArrow to it in the same way.
8. Tab to OK and press SPACEBAR.


I will copy the new part of the What's New file below.

I would like some testing and feedback for a couple of new
features in particular.

1. I find it at best annoying that letter keys that have
associated scripts such as j, k, and r speak (or don't speak)
when writing a label. This version includes an experimental
feature to make these keys speak while writing a label. This
feature may be somewhat problematic. Since we can't detect
the track type, the feature is enabled when commands are
executed that write a label. It is deactivated by commands
that end the label or move out of the label track, and when
focus moves out of the track panel. If you move into a label
track with the arrow keys, the feature is not activated, even
though you can write in a label. If I've missed a way of
moving out of a label track, the feature will remain active. If this happens you can deactivate it by moving to the toolbar
or selection bar and back. Does it work for you? Do you like
it? Should it be controlled with a quick setting? If this
works I might add speech to some of the other letter keys that
perform Audacity functions to at least make them behave
consistently.
2. TAB and Shift+TAB now attempt to speak the active label while
in the track pannel. They do this by searching for text with
the background color white. This doesn't work all the time. I'm not sure if this is because the label isn't visible, or if
the search completes before it has appeared. Since we can't
tell whether the current track is a label track, it works any
time focus is in the track panel. Since TAB is not currently
used for anything in the track panel, this will hopefully be
okay. This would not be needed if Robert's mods for handling
labels were added to Audacity, but he says that isn't
scheduled to happen any time soon.
3. The Go to Track and Move Track to Track features work by
sending keystrokes to Audacity and are currently hard-coded to
use Control+Shift+UpArrow and Control+Shift+DownArrow. This
means that these keys must be assigned to these Audacity
commands. I've thought of two ways to handle this: 1) require
that these key assignments be used, and 2) allow the user to
enter the keystrokes in an input box similar to the way the
user guide URL is handled. Do you think requiring a particular
keystroke is okay or should they be user specifiable?
4. I hate thinking up new keystrokes for script features. I have
put some of the new features on layered keystrokes that start
with JAWSKey+a-- because I can't think of anything it is
needed for in Audacity, and "Audacity" starts with "a". After
this keystroke, g and m prompt for a track number to go to or
move the current track to, respectively. Shift+g and Shift+m
go to or move the current track to the marked track. k marks
the current track (because it's a tiny bit like the keys that
set a mark in IE and Word. x exchanges the current track and
mark (like the Emacs text editor). (I'm thinking of changing k
to space-- it's like Emacs :-) and easier to hit.)
5. The code that silences the speaking of activation of Silence
Preview is a bit tricky as well. It is difficult to determine
when to tell when it is finished. If it doesn't detect the
end of previewing, certain operations, such as moving between
tracks will not speak as expected. There is a fail-safe for
this-- when focus moves to Audacity from another application
this feature is deactivated.

I am trying to maintain support for versions of JAWS back to JAWS
10, although some of the quick settings might not be supported. Is there any need to support versions of Audacity prior to the
current version?
Here is the new part of the What's new file:
(This file last updated 9/29/2015)

. Letter keys now speak while writing a label. This feature may
be somewhat problematic. Since we can't detect the track type,
the feature is enabled when commands are executed that write a
label. It is deactivated by commands that end the label (ENTER)
or move out of the label track, and when focus moves out of the
track panel. If you move into a label track with the arrow keys,
the feature is not activated. It can be deactivated by moving to
the toolbar or selection bar and back. When this feature is
active while playing or recording ENTER terminates the label (and
therefore exits label mode) rather than pausing.
. TAB and Shift+TAB now attempt to speak the active label while in
the track pannel. They do this by searching for text with the
background color white. This doesn't work all the time. I'm not
sure if this is because the label isn't visible, or if the search
completes before it has appeared. It works any time focus is in
the track panel.
. Added code to refresh the track panel after CloseFocusTrack.
This is intended to make JAWS not indicate that the old track is
still current.
. Changed Audacity web site to http://audacityteam.org (in source
code).
. Added scripts MarkTrack (JAWSKey+a,k), GoToMarkedTrack
(JAWSKey+a,Shift+g), ExchangeWithMark (JAWSKey+a,x), and
MoveCurrentTrackToMark (JAWSKey+a,Shift+m). The "mark" remembers
the number of the current track. This mark is very simple-minded--
it will become confused if you add, delete, or move tracks. For
MoveCurrentTrackToMark to work, Control+Shift+UpArrow must be
assigned to the Move Focused Track Up and Control+Shift+DownArrow
must be assigned to the Move Focused Track Down Audacity commands.
. Added the ability to go to a track by number. Entering a number
causes focus to move to that track. Preceding the number with a
plus sign moves down (to higher track numbers) that many tracks. A minus sign moves up that many tracks. When the operation is
complete the name of the target track is spoken. This is assigned
to JAWSKey+a followed by g.
. Added the ability to move the current track to a track position
by number, similar to the Go To track feature. For this to work,
Control+Shift+UpArrow must be assigned to the Move Focused Track
Up and Control+Shift+DownArrow must be assigned to the Move
Focused Track Down Audacity commands.
. Added scripts for Move Focused Track Up/Down. They speak the
track that the track being moved passed over. They are currently
assigned to Control+Shift+Up/DownArrow. For these to work, these
keys must be assigned to the Move Focused Track Up and Move
Focused Track Down Audacity commands. These will not work in
Audacity versions prior to 2.1.1.
. In the track panel the keys Alt+UpArrow and Alt+DownArrow are
now sent to the application. Previously they were not sent
through because of a conflict with the OpenListBox and
CloseListBox scripts.
. Added the ability to silence the speech that occurs when
starting to record.
.Added ability to silence the speech that occurs during the
previewing of an effect.
. The URL for the JAWS User's Guide can now be updated via the
script (Control+Shift+j).
. Added support for the QuickSettings dialog (JAWS 13 and later).
. Made messages for moving and selecting more consistent.

----------

Thanks.

Gary


Other related posts: