Re: native equivalent of aria-live with NVDA

James Scholes

As I often find myself saying on this list, it will help greatly if you described what you're trying to do. The context really matters here. For example:

1. If you're trying to develop or modify a Windows app to fire screen reader announcements, UIA does support a very similar concept to an ARIA live region. The technologies used to implement that app will determine how easily you can gain access to the functionality, e.g. in a .NET WinForms app it's as easy as adding a control to a form and setting its text. In a wxPython app, not so much.
2. If you just want your add-on to say something, import ui and use ui.message.
3. If you're developing an add-on for an application with an updating stream of text, like a console-style interaction, and you want NVDA to automatically speak text as it comes in, there are ways to do that which I've never quite managed to get my head around. Try NVDAObjects.window.DisplayModelLiveText as a starting point.


James Scholes

On 01/05/2021 at 2:20 pm, Florian Beijers wrote:

I am a web developer first and foremost, and don't have a huge amount
of experience interacting with UIA and friends directly, so this is
really me looking for an analog to the concept I know.
Is there a pattern for the web concept of aria-live, where a
particular element on screen immediately echoes new text, but only the
new text, to NVDA as it comes in?
Think new messages in a chat window, new output for a terminal
program, that kind of thing.
If so, is there an example in some NVDA addon, guide, post or email
thread where I can see how this is done?


Join to automatically receive all group messages.