none
How to enable a screen reader application to read information contained in the Label of VB6 form

    Question

  • Scenario :

    I have a VB6 application and to make it useful for the visually impaired people I also installed JAWS on the system.

    This VB6 application contains a custom MsgBox where any information can be displayed inside a LABEL control. It also has an OK and CANCEL button

    Problem

    The problem is that JAWS reads the "form name" and also the buttons that are on the form, but it fails to read the information displayed inside the LABEL



    I have tried searching a way where i can use MSAA route in VB6 to expose the LABEL control so that JAWS could fetch the information through IAccessible Interface.

    But i have not been successful in my quest. 

    Your help is appreciated in advance.
    Wednesday, June 12, 2013 4:23 PM

All replies

  • If you can't access the label's text any other way, you could try screen capture and OCR. I did a small project posted on my company's blog here:
    https://www.leadtools.com/blog/document-imaging/ocr/ocr-screen-capture-25-projects-25-days/
    The project uses the LEADTOOLS SDK to snip a rectangular area of the screen and recognize any text in it.

    Although the program is user-assisted, the SDK can be used to automate the process. For example, if you know the coordinates of the label, you can define the rectangle by code instead of having to use the mouse.
    If you don't know the label's location but other parts of the window have known text in known places (like the form name or the buttons' text), you could OCR the whole window, get the locations of the known words from the recognition result, then deduce the location of the needed label from that. You can then find the words inside the label itself.
    If you want to try this approach, the SDK has a free evaluation edition on the website.
    Saturday, April 01, 2017 2:44 PM