[NFBCS] JAWS Script Question

Doug Lee dgl at dlee.org
Tue Dec 3 21:00:57 UTC 2024


priorLine and nextLine functions request moves but may not necessarily wait to return until they are
accomplished. It is often sufficient to put a pause() call below those before speaking. In more obnoxious
circumstances, event processing is more effective. You may also find the SayLineUnit function in default.jss
an interesting alternative for wrapping, depending on your environment.

On Tue, Dec 03, 2024 at 12:56:03PM -0700, NFBCS mailing list wrote:
Hi all,

I'm trying to reproduce the edsharp indentation level announcements since I
often lose track of where I am in vs.

I'm wrapping PriorLine and NextLine so that I can get the indentation level
before and after the move.

I'm confused about how this is working; here's my debug script:

SayString("debug "+GetLine())
PriorLine()
SayString("debug "+GetLine())
This speaks the line I was on twice, whereas the second SayString should be
speaking the line I'm currently on. I'm confused why/how this is happening,
and if there's a better way to go about this.

For example, If my file reads:

a

b

c


and I'm on b, if I navigate up from b I expect to hear:

debug: b

debug: a

instead I hear:

debug: b

debug: b

The same issue exists going down a line.



Thanks,


Ty



_______________________________________________
NFBCS mailing list
NFBCS at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for NFBCS:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/dgl%40dlee.org

-- 
Doug Lee                 dgl at dlee.org                http://www.dlee.org
"The best executive is the one who has sense enough to pick good men to do
what he wants done, and self-restraint enough to keep from meddling with
them while they do it."--Theodore Roosevelt



More information about the NFBCS mailing list