[jawsscripts] Re: Questions regarding keypresses

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 19 Dec 2017 15:31:13 -0000

Csaba, this is the KeyPressedEvent.  If you look in HJConst.jsh, under 
"KeyCodes", then you will find constants for the keyboard keys.
So, in a KeyPressedevent function, you would put something like:

Void Function KeyPressedEvent (int nKey, string strKeyName, int 
nIsBrailleKey, int nIsScriptKey)
If (nKey == Key_escape) Then
    do something
ElIf (nKey == Key_SPACEBAR) Then
        {Enter}
EndFunction

Steve.
-----Original Message----- 
From: Csaba Godo
Sent: Tuesday, December 19, 2017 1:33 PM
To: JAWSScripts List
Subject: [jawsscripts] Questions regarding keypresses

Hi guys,

How is it possible to intercept, or block some keys? Or modify the
pressed key? For example: I would like to block in some apps ESC key,
which is closes the app. Or in an other app I would like if spacebar key
would act as the enter key. does.
And an other question: which hook function is running if some key is
pressed on the keyboard? I mean which announces the letter or symbol was
typed by keypress.

Thanks!

Csaba
__________�

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: