Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change assumptions for FORMATTED UIA consoles #2

Open
codeofdusk opened this issue Oct 25, 2021 · 2 comments
Open

Change assumptions for FORMATTED UIA consoles #2

codeofdusk opened this issue Oct 25, 2021 · 2 comments

Comments

@codeofdusk
Copy link

NVDA 2021.3 contains changes to better work with a new version of the Windows Console. I haven't used your add-on, but a few assumptions about the UIA support made in the readme no longer hold:

Does this violate any assumptions currently made by your add-on?

Cc @carlos-zamora (engineer working on UIA support on console side). I'm the person primarily responsible for the NVDA-side work. Thanks.

@mltony
Copy link
Owner

mltony commented Oct 25, 2021 via email

@codeofdusk
Copy link
Author

FYI, when you're working on this:

from _UIAConstants import WinConsoleAPILevel

# obj represents an NVDAObjects.UIA.WinConsoleUIA.WinConsoleUIA instance
if obj.apiLevel >= WinConsoleAPILevel.IMPROVED:
    # This console has whitespaces
if obj.apiLevel >= WinConsoleAPILevel.FORMATTED:
    # This console allows free exploration of the text buffer

You can also see the API level that a console has in the NVDA+f1 log (currently the last line of output).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants