[jawsscripts] Re: Keyboard help

  • From: Udo Egner-Walter <udo.egner-walter@xxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 6 Oct 2018 20:07:45 +0200

Hi Steve,

I'm not sure if I understand you.

If you install a hook in your application, for example

AddHook (HK_SCRIPT, "MyHook")

then inside the hook function "MyHook" you can allow a script to be 
executed or not. All scripts had to pass the function and you alone 
decide which scripts to execute.

If you further trap the keys with the TrapKeys function then the keys 
were not sent to the application.

In the KeyPressedEvent of you application (or the like) the keys are 
still arriving. So here you can decide what to do (for example start 
your own script, end the hook and so on).

But please remember to uninstall the hook at the end. Otherwise the 
default scripts are not running any more.

Hope this helps a little

Udo



Am 06.10.2018 um 19:36 schrieb Steve Spamer:

Hi, a question on Jaws keyboard help.

I currently have a working solution that allows a user to turn on keyboard
help and get descriptions of specific keys in any particular window.  All of
this information is in a set of scripts that you switch to when pressing
jaws key plus 1.  It maybe not the most elegant solution, as it still allows
any undocumented keys to be processed by the application.

So, looking at the Jaws help, I'm wondering if anyone knows if the default
script could be modified to access the assigned keys I have, while ignoring
any other key, so not letting it be processed.  The lines of interest in the
default jaws cripts are I think:

AddHook (HK_SCRIPT, "KeyboardHelpHook")
; ignore any keys not attached to scripts
TrapKeys(TRUE)
CaptureAllGestures(TRUE)

The line:
AddHook (HK_SCRIPT, "KeyboardHelpHook")
looks to me as if this "KeyboardHelpHook" is where the information is taken
from.  Of course I am probably totally wrong, but if I could find this, it
may give me clues to what to do.  Otherwise, is there a way to use this
default script, but use information/keys I have in a set of scripts/ jkm
files etc.

THX Steve.

Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording with
Samplitude in Windows: www.samplitudeaccess.org.uk

__________�

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


__________�

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

Other related posts: