Report status bar: find a UI Automation status bar by its control type when the position lookup finds none

Open
#21,114 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start by reading api.getStatusBar and the _get_statusBar implementations in appModules/notepad.py and appModules/explorer.py. Trace how the foreground UIA object and its descendants are queried, then add coverage for the fallback when the corner lookup finds no status bar. Done means a UIA StatusBar can be returned through that fallback while the existing position lookup remains first.

Written by the indexing model from the issue text.

Description

feature p4 triaged
Is your feature request related to a problem? Please describe.

NVDA+End (NVDA+Shift+End in the laptop layout) can't find the status bar of a UI Automation application whose window has the standard Windows 10/11 frame, even when the application exposes a correct status bar. api.getStatusBar asks the app module first; otherwise it takes the object at the foreground window's bottom-left pixel, objectFromPoint(left, top + height - 1), and walks up its ancestors to a status bar. The window's rectangle includes the invisible resize border, so that pixel is outside the application's content (and off the screen when the window is maximized), and NVDA says there is no status bar.

Example: WordCraft, an open-source word processor that draws its interface with egui and exposes it through AccessKit, has a UIA element with the StatusBar control type, named, with bounds and children (storytold/wordcraft#5130). NVDA+End says no status bar was found. With an add-on whose app module searches the UIA tree for the StatusBar control type (squalorso/wordcraft-nvda 0.2.1.4), it reads "Status Bar, Page 1 of 2, 361 words, English (United States), …".

NVDA already does this for its own targets: appModules/notepad.py (#13688, #14573) and appModules/explorer.py implement _get_statusBar by searching the UIA tree for the StatusBar control type.

Describe the solution you'd like

In api.getStatusBar, when the app module provides no status bar and the walk up from the corner object finds none, and the foreground object is a UIA object, search its descendants for the first element whose control type is UIA_StatusBarControlTypeId, as the Notepad and File Explorer app modules do, and return it. The position lookup stays first, so nothing changes where it works today.

Describe alternatives you've considered
  • Per-app code, as now: every UIA application NVDA doesn't ship support for needs an add-on for this one command, although it already exposes the standard role.
  • Probing a point inside the visible frame (DWM's extended frame bounds, or the client rectangle) instead of the window rectangle. That fixes the invisible-border case, but still depends on the status bar being at the bottom-left corner.
Additional context

NVDA 2026.3 on Windows 11 23H2 (10.0.22631). WordCraft: a build of storytold/wordcraft#5130. Related: #3323 (getStatusBar made API-independent), #9792 (the app module hook), #13688 (lists improving api.getStatusBar as an alternative).

Perhaps you will find more conventional applications to test this - I came across this during testing accessibility fixes in WordCraft, so I can't suggest it right now, sorry.

Dominant language
Python
Stars
2.7k
Forks
842
Avg merge
2d 4h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.