Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I am looking at implementing a feature that reads a message to the user detailing a window's position relative to the screen when the window is moved. I understand the logic already exists in the NVDAObject class (_get_locationText method) and am trying to utilize it along with the Window class. I am having a little trouble figuring out exactly where the event that reads the info to the user should be called from, specifically in relation to being triggered from the object_locationchange winevent. Any advice or suggestions would be appreciated.

You must be logged in to vote

Replies: 2 comments · 1 reply

Comment options

Hi,

Based on a comment from a different issue (if I read it right, you wish to do this as part of a senior project), please answer the following questions:

  1. Can you tell us the use case for announcing window location changes?
  2. Tell us what happens now when you try to move the window using Alt+Space, M, and what NVDA should do instead.
  3. Have you tested this suggestion with a different screen reader (say, Narrator)?

Let's start with these questions.

Thanks.

You must be logged in to vote
1 reply
@ktg010
Comment options

Thank you for your reply!

  1. From the issue I pulled this feature from, the main use case for this is with NVDA's viewers (speech, braille, log, etc) so you can get a feeling of where on screen they are.

  2. Currently, using this shortcut, there is no feedback whatsoever to the user. In the debug log, all that is tracked is the input of an arrow key.

The implementation I am looking at trying will behave similarly to the user feedback when moving an image/textbox within powerpoint when NVDA is active. That is, when the window is moved, the position would be read as "X points from the left screen edge", "X points from the right screen edge" when moving horizontally, "X points from the top screen edge", "X points from the bottom screen edge" when moving vertically. NVDAObjects (like the Window class) already have the _get_locationText that returns:
"Object edges positioned {left:.1f} percent from left edge of screen, "
"{top:.1f} percent from top edge of screen, "
"width is {width:.1f} percent of screen, "
"height is {height:.1f} percent of screen",

  1. I have tested this suggestion with Windows narrator and no user feedback options exist for this interaction. If there is anything additional you would like me to clarify, please let me know.
Comment options

Hi,

I see. Before doing more work with this issue, please write to me privately so I can better understand your situation and write follow-up questions suitable for discussion in a senior design class.

Thanks.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.