[jawsscripts] Re: Scripts don't work
- From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 10:49:24 -0500
Make sure when you change the key assignment for a script, that the
script does not use the TypeCurrentScriptKey() function.
In this case, you should use the TypeKey function and specify the
control+o as the key to be simulated.
If your script is using the TypeCurrentScriptKey function , Jaws will
simulate the key that you pressed (F5) and because F5 does not normally
do anything for FSReader, nothing will happen. I believe I mentioned
this a few weeks ago when Matthew was defining an alternative key
assignment for the play/stop key.
Here is the OpenDialog script.
script OpenDialog()
if UserBufferIsActive() then
UserBufferDeactivate()
EndIf
SayCurrentScriptKeyLabel()
TypeCurrentScriptKey()
EndScript
David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel: David.Farough@xxxxxxxxxxxxx
Tel. / Tél: (613) 992-2779
>>> "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx> 09:39 am Sunday, November
16, 2008 >>>
Wow! he's right! something very odd going on here worthy of someone's
attention.
I just did some banging away at this myself in fsReader, and something
very
odd is going on there with new keyboard assignments simply not
activating
properly, even though they're large as life in the jkm assigned to the
same
Script! it's as if something global is being set in fsReader somehow
that is
preventing these. it's something I confess I've never ever seen
before.
I'm working in jaws6.2 mainly, but I tested in jaws10 as well and seems
to
be same deal!
if you add the keystroke
f5, or control+alt+N
to the open dialog script in FsReader jkm, it appears as an entry in
keyboard manager, also appears in the actual jkm file in a text
editor,
moving it from [desktop] section, into [common] section does nothing to
help
this.
But, here's the super strange thing, turning on keyboard help and
hitting
the newly added keystroke, indeed speaks the open dialog script to
which
it's been assigned!
so everything looks to me green and go for the newly added keystroke
to
work, but it certainly doesn't work here either!
just actually changing the control+o entry, to f5 or f6, or to, say,
control+alt+n, although it is accepted as a change in the keyboard
manager,
and speaks it's function when under keyboard help, also fails to
activate
the actual OpenDialog script!
it's indeed very strange!
anyone care to comment on what could b going on there for matthew?
I certainly have never seen such behaviour before and can only imagine
something funky is going on in a global key Pass through situation
somewhere, but it's beyond me I must freely admit.
I've tried it with the PlayPause script as well, and same deal!
although it
appears to take, and the entry really is in the fsReader.jkm under a
text
editor, and announces itself in help, it just doesn't fire when
pressed!
how very odd!
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, November 16, 2008 1:19 PM
Subject: [jawsscripts] Scripts don't work
> Hi all,
>
> I just went into FS reader to add keystrokes to some scripts and the
> keystrokes don't seem to be taking. Why?
> I launched FS reader then hit insert F2 then hit enter on keyboard.
I
worked
> my way over to change the "open file" entry and hit control A to add
a
> keystroke. I added F5 to open the files dialogue. I closed keyboard
manager,
> and I closed and reopened FS reader. My keyboard change did not take
at
all.
> I unloaded and reloaded jaws and still no difference. Any help will
be
> appreciated as is no keyboard changes will take.
>
> Matthew
>
> __________
> Visit and contribute to The JAWS Script Repository
http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________
Visit and contribute to The JAWS Script Repository
http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: