[jawsscripts] Re: keycodes for keypressed event

  • From: "Paul Magill" <magills@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 26 Oct 2007 21:50:49 +1000

Hi Jackie,

One way, is just to set up a keyPressedEvent function in your own script 
set, similar to  that below.

Each time you press a key, the relevant number is spoken, and that number 
can be used to check for that key press in the actual KeyPressedEvent in 
your applications script set.

While it is not necessary in a test arrangement like this, it is wise to 
make a call to the keyPressedEvent in the default file after you have done 
everything in the one in your script set.


Void Function KeyPressedEvent (int nKey, string strKeyName, int 
nIsBrailleKey, int nIsScriptKey)

;SayString (strKeyName)

SayInteger (NKey)

; call the one in the default file to cover normal actions

KeyPressedEvent (nKey, strKeyName, nIsBrailleKey, nIsScriptKey)

EndFunction



Regarrds,
Paul from Aust

----- Original Message ----- 
From: "Jackie McBride" <abletec@xxxxxxxxx>


Hay, folks:

Jaws says in its scripting standards not 2 use scripts for
alphanumeric keystrokes, but rather use key pressed event.  Where does
1 find the integer keycodes for keypressed event, e.g., j, shift j,
etc.?

Thanks 4 any help.


-- 
Jackie McBride
Please sign the Yahoo Accessibility petition at:
<http://www.petitiononline.com/yabvipma/petition.html>
& Check out my homepage at:
www.abletec.serverheaven.net
__________
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: