Skip to content

Support retrieving the status bar of Windows File Explorer (#6769)#12371

Closed
JulienCochuyt wants to merge 3 commits into
nvaccess:masterfrom
accessolutions:i6769-explorerStatusBar
Closed

Support retrieving the status bar of Windows File Explorer (#6769)#12371
JulienCochuyt wants to merge 3 commits into
nvaccess:masterfrom
accessolutions:i6769-explorerStatusBar

Conversation

@JulienCochuyt

@JulienCochuyt JulienCochuyt commented May 6, 2021

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #6769

Summary of the issue:

Currently, the Window File Explorer cannot be retrieved using the reportStatusLine global command.

Description of how this pull request fixes the issue:

Testing strategy:

  • Ran from source under Windows 10 20H2 19042.928 & 19042.964 both with a French locale.
  • Ensured expected result whether files are actually selected or not.

Known issues with pull request:

This is my first UIA work ever: Review with caution!
I've tried to set safeguards on expectations, but there might be huge differences between Windows versions and I'm not able to test all of them.

Change log entries:

New features
Changes
In Windows 10, the File Explorer status bar can now be retrieved using the standard gesture NVDA+end (desktop) / NVDA+shift+end (laptop).

For Developers

  • Status bar text retrieval may now be customized by an AppModule.

Code Review Checklist:

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual tests.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.

@JulienCochuyt JulienCochuyt requested a review from a team as a code owner May 6, 2021 12:25

@michaelDCurran michaelDCurran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UIA walker part looks fine to me.
The getStatusbarText code is a bit complex and I also have no idea how robust that would be on different Windows versions. Perhaps @josephsl has some idea?
If this can be tested on Win 7, Win 8.1 and Win 10, then I'm good with this.

Comment thread source/appModules/explorer.py Outdated
Re: nvaccess#12371 (comment)

Co-authored-by: Michael Curran <michaelDCurran@users.noreply.github.com>
@lukaszgo1

Copy link
Copy Markdown
Contributor

I've tested code from this PR on Windows 7, Server 2012, Windows 10 1511, 1809 and 20H1 and aside from Windows 7 which requires a pretty different implementation it works pretty well. In the pr12371OldWindowsVers branch of my fork based on this code I've implemented additional retrieval method for Windows 7, fixed a unnecessary garbage being reported when reading status bar in the Quick Access on Windows 10 and removed reporting about no files being selected. I personally consider this rather unnecessary since as far as I can tell there is no visual indication of this in the status bar, and files are unselected only when the folder is freshly opened or user unselects the current file himself Happy to hear a different opinions about this though as this is rather subjective. @michaelDCurran Is the testing outlined above sufficient for you to continue with this?

@lukaszgo1

Copy link
Copy Markdown
Contributor

@JulienCochuyt Do you intent to continue this work?

lukaszgo1 pushed a commit to lukaszgo1/nvda that referenced this pull request Sep 14, 2021
Re: nvaccess#12371 (comment)

Co-authored-by: Michael Curran <michaelDCurran@users.noreply.github.com>
@lukaszgo1

Copy link
Copy Markdown
Contributor

@JulienCochuyt Since this seemed more or less abandoned, and required changes to work on older Windows versions (which, as you've indicated in the PR description you're unable to test yourself) I've created #12845 which superseets this. I hope you do not mint.

@feerrenrut

Copy link
Copy Markdown
Contributor

As per @lukaszgo1, I'm going to close this as abandoned and refer people to #12845

@feerrenrut feerrenrut closed this Sep 15, 2021
@feerrenrut feerrenrut added the Abandoned requested reports or updates are missing since more than 1 year, author or users are not available. label Sep 15, 2021
michaelDCurran pushed a commit that referenced this pull request Nov 24, 2021
…ken over after abandoned #12371 (#12845)

Fixes #6769
Superseedes #12371

Summary of the issue:
Currently, the Window File Explorer cannot be retrieved using the reportStatusLine global command.

Description of how this pull request fixes the issue:
• Take advantage of Status bar handling: allow app modules to define their own routines to fetch status bar and use it in status bar command in global commands #4640 to implement custom status bar retrieval by the explorer app module.
• Use a UIAWalker to retrieve it, as hinted by @josephsl in Can't read status bar in File Explorer (Windows 10) #6769 (comment)
• Still, instead of overlaying the status bar of its children for concerns expressed in Can't read status bar in File Explorer (Windows 10) #6769 (comment), allow app modules to provide their custom implementation of api.getStatusBarText
• Implement explorer.AppModule.getStatusBarText as inspired by @ruifontes prototype in Nvda utters unavailable after copying files #6842 (comment) (hinted by @feerrenrut in Can't read status bar in File Explorer (Windows 10) #6769 (comment)) but in a slightly more complex way - trying to cover more unexpected cases.
@CyrilleB79 CyrilleB79 removed the Abandoned requested reports or updates are missing since more than 1 year, author or users are not available. label Jun 18, 2024
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

Successfully merging this pull request may close these issues.

Can't read status bar in File Explorer (Windows 10)

5 participants