[jawsscripts] Re: AW: best way to display text on braille display?
- From: marquats@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Fri, 31 Jul 2009 11:02:22 +0200 (CEST)
Hi Willi,
thank you very much for your suggestion. I have implemented it and it
works, at least on my computer. I have not tested it yet on the other
computers with Jaws 6.20.
In NewTextEvent() I write the text into a global string variable LText,
and in BrailleBuildLine() I call
BrailleAddString (LText, 0, 0, ATTRIB_TEXT).
To switch to structured mode, one can call
SetBrailleMode (BRL_MODE_STRUCTURED)
within AutoStartEvent().
If LText contains an empty string, I have to assign it a string with
length 1 containing a space. Otherwise the display shows some button text
instead of being empty.
There is one little problem: the braille viewer (I have no braille display
at home) always shows the cursor on the braille display after the last
character, contrary to the BrailleMessage-method I used previously. This
might disturb a bit. Is there a way to switch the cursor off?
Greetings and many thanks, Thomas Marquardt
> Hi Thomas,
> I'd suggest to do it the following way:
> - Configure Jaws to use structured mode for your App.
> - provide a Function, Int Function BrailleBuildLine(), that returns TRUE
> - in that function use BrailleAddString() to send your data to the display
> - BrailleBuildLine() is called by Jaws periodically, so all you have to do
> is to update your string variable as needed, maybe either in
> NewTextEvent()
> or from your scripts directly.
>
> It may be necessary to call BrailleRefresh() after you updated your string
> variable.
>
> Best Regards, Willi
>
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-
>> bounce@xxxxxxxxxxxxx] Im Auftrag von marquats@xxxxxxxxxxxxxxxxxxxxx
>> stuttgart.de
>> Gesendet: Freitag, 24. Juli 2009 11:57
>> An: jawsscripts@xxxxxxxxxxxxx
>> Betreff: [jawsscripts] best way to display text on braille display?
>>
>>
>> Hi all,
>>
>> I have written a script for a self-written Application. The Application
>> shall display text on a braille display, and accept braille text
>> entered
>> using the braille keys on the braille display.
>>
>> Somehow the stuff doesn't work properly.
>>
>> To display text, I call
>> BrailleMessage (text, 0, 1000000)
>> in the function NewTextEvent().
>>
>> The intention is that the braille display shall display only the text
>> which is sent to it, and nothing else. It shall not display e.g. the
>> text
>> on the buttons on the Application's window or something else. For this
>> I
>> use a message which is to be displayed a long time (argument 1000000),
>> so
>> that it constantly shows until the next message is displayed by a call
>> of
>> BrailleMessage().
>>
>> This works in principle, but I suspect that this concept of long-
>> lasting
>> messages might cause trouble.
>>
>> To enter braille text into the App, i use a script for every
>> combination
>> of braille keys to be pressed. Example script:
>>
>> Script BrF34 ()
>> TypeKey ("d")
>> TypeKey ("f")
>> TypeKey("Control+Alt+p")
>> EndScript
>>
>> This is called whenever the user presses the braille keys F3 and F4
>> (dots
>> 1 and 2), thus entering a 'b'.
>>
>> This also works in principle. But the App doesn't always work properly
>> on
>> all computers it is installed on. It is used with Jaws 6.20 currently.
>> We
>> have installed it on four computers, and on three it doesn't work, on
>> the
>> fourth it works only for five minutes, then Jaws has to be restarted.
>>
>> My question is, what could be the reason for it? Maybe the method of
>> long-lasting braille messages mentioned above is improper and causes
>> the
>> problem? What other way is there to display text on the braille display
>> and supress all other output on the braille display? Or could there be
>> some other reason?
>>
>> Sorry for this long talk, but I don't know how to explain it shorter.
>>
>>
>> Greetings and thanks for your efforts, Thomas Marquardt
>>
>>
>> __________
>> 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: