[jawsscripts] AW: best way to display text on braille display?
- From: "Willi Lutzenberger" <willutz@xxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Fri, 24 Jul 2009 17:14:57 +0200
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
Other related posts:
- » [jawsscripts] AW: best way to display text on braille display? - Willi Lutzenberger
- » [jawsscripts] Re: AW: best way to display text on braille display? - marquats