ruifontes / virtualReview

Displays screen contents via a browsable window.
GNU General Public License v2.0
2 stars 3 forks source link

Uia based console grabbing #7

Open Danstiv opened 11 months ago

Danstiv commented 11 months ago

In NVDA it is possible to use UIA to work in the console, but sometimes this causes problems. However, when using UIA, Virtual Review can retrieve more text (probably all of it), which is usually very convenient. In legacy mode, Virtual Review is only able to receive the text displayed on the screen, which makes no sense, because This text is already viewable. This PR adds functionality that allows to use legacy implementation for consoles, and receive text using UIA. This approach should not cause problems with UIA, and, at the same time, it allows to view all text outputted to the console. In addition, addon settings have been added that allow to enable the implemented functionality, i.e. By default it is disabled and the add-on's behavior remains unchanged.