[jawsscripts] Re: AW: Enter braille patterns into App

  • From: "Huskins, Wayne" <Wayne.Huskins@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 29 May 2008 12:16:16 -0300

I am not sure I understand exactly   what you are trying to do re the =
application and jaws scripting. It would be fairly easy but tedious to =
use keyPressedEvent to determine which keys have been pressed and to =
correspond those keys to given braille symbols. =20

Each key on the braille display has its own name as "braille f17" and =
combinations of keys give keynames as "braille f17+f21"

You could create a delimited list of key name combinations and a =
corresponding second list of symbols to  output.=20

How you would use that output in terms of your application is where I =
fail to understand things.

The following code recognizes letters a and b when I press the =
corresponding arbitrarily assigned keys on my braille display and types =
the letter as appropriate.

Void Function KeyPressedEvent (int nKey, string strKeyName, int =
nIsBrailleKey, int nIsScriptKey)
var
string pressedKeys,
string keyNamesList,
string outputList,
string result
let keynamesList =3D "Braille F17"+ ;this  is letter a
"|Braille F17+F21" ;this is letter b
let outputList =3D "a|b"
if nIsBrailleKey then
delay(1)
if !IsKeyWaiting () then
let pressedKeys =3D strKeyName
endif
let result =3D StringSegment (outputList, "|", StringSegmentIndex =
(keynamesList, "|", pressedKeys, 1))
if result > "" then
typekey(result)=09
saystring(result)
endif
endif
Endfunction


Wayne
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx =
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of =
marquats@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: May 29, 2008 10:52
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: AW: Enter braille patterns into App

I can test the Program with a HandyTech "Braille star 40", but I can =
only
sometimes have the braille display to try things out. The program should
be usable with different Braille displays (at least this would be
preferable).

I have sucessfully tried the Function KeyPressedEvent(), it is called
every time a braille key is pressed, and allows to determine which key.
But the problem is to recognize the point of time when all the braille
keys are released again. Then the keys which have been pressed determine
the pattern, which should be passed to the application. Or is there a
totally different way to do it?


BTW: currently I simulate a braille keyboard using the normal PC =
keyboard,
but with some keyboards this doesn't work.


> Hi Thomas,
> what kind of Braille display are you using? Some displays already have =
a
> Braille input facility implemented in their driver.
>
> Regards, Willi
>
>> -----Urspr=3DFCngliche Nachricht-----
>> Von: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-
>> bounce@xxxxxxxxxxxxx] Im Auftrag von marquats@xxxxxxxxxxxxxxxxxxxxx
>> stuttgart.de
>> Gesendet: Donnerstag, 29. Mai 2008 11:47
>> An: jawsscripts@xxxxxxxxxxxxx
>> Betreff: [jawsscripts] Enter braille patterns into App
>>=3D20
>> Hi,
>>=3D20
>> I'm writing a program which should receive braille patterns. The user
>> shall enter braille with the braille keys on the braille display.
>>=3D20
>> I don't know how to do this. There are the functions KeyPressedEvent
>> and
>> GetKeyState, but I don't know how to find out when the braille keys
>> are all released again.
>>=3D20
>> Can anyone give me a hint, or tell me where to find example scripts?
>> How
>> is the braille keyboard usually supported? What are the scripting
>> techniques usually used for this?
>>=3D20
>> Many thanks for your help, Thomas Marquardt
>>=3D20
>>=3D20
>>=3D20
>> __________
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>
> __________=A0
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts



__________=A0
View the list's information and change your settings at=20
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: