[jawsscripts] Re: Questions about JAWS interacting with QT framework

  • From: "jitender kumar@5142695" <Jeet.Kumar1@xxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 2 Jan 2020 06:06:14 +0000

Hello peat, if nothing helped you, see the following function, this approach 
might assist you in moving further.
;Following comes from Doug's scripts I am using in one of my program.
void function QTSayObject(object o, int childID)
; Announce one object or element if there's something to say for it.
var string buf = ""
var string name = o.accName(childID)
var string desc = o.accDescription(childID)
if stringCompare(name, desc, False) == 0
name = desc
elif desc && !name
name = desc
elif desc
name = name +" " +desc
endIf
var string shortcut = o.accKeyboardShortcut(childID)
if !stringIsBlank(shortcut)
name = name +" " +shortcut
endIf
var int stc = WT_Unknown
var int iRole = o.accRole(childID)
if iRole != Role_System_Client
&& iRole != Role_System_Pane
&& iRole != Role_System_StaticText
&& iRole != Role_System_Border
;do something,
endIf
var string val = o.accValue(childID)
indicateControlType(stc, name, val)
;Try such things and it may help you.
endFunction
________________________________________
From: jawsscripts-bounce@xxxxxxxxxxxxx [jawsscripts-bounce@xxxxxxxxxxxxx] on 
behalf of Peter Torpey [ptorpey00@xxxxxxxxx]
Sent: Thursday, January 2, 2020 5:25 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Questions about JAWS interacting with QT framework

Warning: This email is not originated from SBI. Do not click on attachment or 
links/URL unless sender is reliable. Malware/ Viruses can be easily transmitted 
via email.

I recently started playing around with Musescore, a program for creating and
reading musical scores.


The program works very well with the default configuration of NVDA.  As one
navigates through a score, NVDA speaks each note name, each note duration,
position in the score, etc.



When I use JAWS 2020, however, JAWS does not speak any of this information.



So I was wondering why this was and figured maybe I could script something
up to make Musescore work with JAWS as it does with NVDA.  Below is a
response I got from one of the Musescore developers which references the QT
framework that apparently is sending this info to NVDA.  I don't know what
this QT framework is or how/if JAWS can be made to grab information from it.
If anyone has any thoughts or suggestions I would appreciate it.



Here is the response from the Musescore developer:



"We'd love to get MuseScore working with JAWS (and Narrator, and VoiceOver,
and Orca) but so far no luck. If you can help that would be fantastic!

It is sort of true that we use the status bar for thew accessibility text,
but not totally. The same function generates both, but they are customized
differently. At the end of each command that might change the selection, we
generate the status text and the accessibility text. We use the Qt framework
to handle this and most other UI elements. Specifically, we define the score
view to be a QAccessibleWidget, and override the QAccessibleWidget::text
with a value of QAccessible::Name to return the accessibility text.
Everything seems to be working right but somehow NVDA is the only
screenreader that actually reads anything by default. Apparently JAWS will
if transfer keyboard focus elsewhere then back? It's frustrating that we
haven't been able to figure out the problem, and we've been looking at
totally different ways of solving it but I suspect it will turn out to be
some simple one-line change that is what we're missing."



--Pete





__________�

View the list's information and change your settings at
https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freelists.org%2Flist%2Fjawsscripts&amp;data=02%7C01%7CJeet.kumar1%40sbi.co.in%7C32e99549ea0944640a5708d78f162fd9%7Cfbdb22357f504509b407c58325ec27a8%7C0%7C0%7C637135197783691078&amp;sdata=7F07HalWuMO3pGad%2BCRUztXhZBc3ZgiiVNRWZFU1LbQ%3D&amp;reserved=0


The information in this mail is confidential and is intended solely for 
addressee. Access to this mail by anyone else is unauthorized. Copying or 
further distribution beyond the original recipient may be unlawful. Any opinion 
expressed in this mail is that of sender and does not necessarily reflect that 
of State Bank group.
---
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: