← Back to team overview

nvda-sonar-users team mailing list archive

Re: Attempting to Get Sonar X3 Going

 

Roy,
I'll also have to look further, but the track pane seems to be ctvBaseView, and objects inside that pane are CTVStripBase. Berklee is going well. This year we have students from Switzerland, Bulgaria, Mexico, Korea, and Boston! Btw, does anyone know why if I hit reply, it goes to the actual sender, not to the list nvda-sonar-users@xxxxxxxxxxxxxxxxxxx?

Chi

On 8/6/2014 12:23 AM, Roy wrote:
will also look into it deeper.
is the original class in Sonar x3E ctvBaseView or ctvStripBass?

on another note: how is it going with Berkley?

cheers
Roy.

-----Original Message----- From: Chi Kim Sent: Wednesday, August 06, 2014 6:17 AM To: nvda-sonar-users@xxxxxxxxxxxxxxxxxxx Subject: Re: [Nvda-sonar-users] Attempting to Get Sonar X3 Going
Hi Roy,

Thanks for the info.
I found that window class name in The method getClass in class CwaccessView doesn't match CTVBaseView. Instead, the focus is on window class called CTVStripBase in new x3 every time you move your cursor in track pane. I changed so that it matches CTVBaseView by modifying obj to self.parent, but I still get an error below. It looks like I have a lot more study to do about how the script is structured!

Chi

INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (23:04:54):
Developer info for navigator object:
name: u'Tracks Pane'
role: ROLE_PANE
states: STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: True
Python object: <NVDAObjects.IAccessible.IAccessible object at 0x05707B70>
Python class mro: (<class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: None
location: (231, 108, 351, 0)
value: None
appModule: <'sonar' (appName u'sonarpdr', process ID 3336) at address 57008d0>
appModule.productName: u'SONAR X3 Producer'
appModule.productVersion: u'X3e'
TextInfo: <class 'NVDAObjects.NVDAObjectTextInfo'>
windowHandle: 263594
windowClassName: u'CTVBaseView'
windowControlID: 59680
windowStyle: 1375731712
windowThreadID: 3080
windowText: u'Tracks Pane'
displayText: u''
IAccessibleObject: <POINTER(IAccessible) ptr=0x5862f8 at 5523e40>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=263594, objectID=-4, childID=0
IAccessible accName: u'Tracks Pane'
IAccessible accRole: ROLE_SYSTEM_CLIENT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: None
ERROR - core.Notify (23:04:54):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.pyc", line 316, in Notify
  File "IAccessibleHandler.pyc", line 846, in pumpAll
  File "IAccessibleHandler.pyc", line 661, in processFocusWinEvent
  File "IAccessibleHandler.pyc", line 675, in processFocusNVDAEvent
File "NVDAObjects\IAccessible\__init__.pyc", line 611, in isDuplicateIAccessibleEvent AttributeError: 'Dynamic_TrackPaneUIA' object has no attribute 'IAccessibleChildID'


On 8/5/2014 6:44 AM, Roy Shtupler wrote:
hi Chi
the value of 2 will work the classic cwaccess mode; like it did in JSonar v8.5.
3 and beyond rely on the UI support implemented into Sonar x3.
hope this helps

Roy.
http://elephant-dolphin.bandcamp.com
----- Original Message ----- From: "Chi Kim" <chigookkim@xxxxxxxxxxx>
To: <nvda-sonar-users@xxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 05, 2014 4:58 AM
Subject: [Nvda-sonar-users] Attempting to Get Sonar X3 Going


Hi All,

This is probably over my head, but I'm trying to get the script to run on Sonar x3. Anyways, I read the NVDA addon developer guide, and started to play around with the script on Sonar x3.
I added AccessibilityMode key with value 3 on the registry.
Looking at the script, it seems like it depends on Cwaccess, but there are two possible values for Cwaccess. Should I use 2 or 3? Ctrl+shift+n seems to report the name of the track. However, once I rename the track, it stops reporting.
What should I change in the script in order to make it work?
Maybe the view is not recognized as the right class?
I'm including the debug before and after below, and I'm using NVDA master snapshot.
Thanks,

Chi

INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (21:37:00):
Developer info for navigator object:
name: u'Bus'
role: ROLE_PANE
states: STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: True
Python object: <appModules.sonar.BusPane object at 0x04E6B0B0>
Python class mro: (<class 'appModules.sonar.BusPane'>, <class 'appModules.sonar.TrackOrBusPane'>, <class 'appModules.sonar.CwaccessView'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: None
location: (231, 253, 351, 0)
value: u'2\nMetronome'
appModule: <'sonar' (appName u'sonarpdr', process ID 3244) at address 4e729f0>
appModule.productName: u'SONAR X3 Producer'
appModule.productVersion: u'X3e'
TextInfo: <class 'NVDAObjects.NVDAObjectTextInfo'>
windowHandle: 5898976
windowClassName: u'CTVBaseView'
windowControlID: 59696
windowStyle: 1375731712
windowThreadID: 3496
windowText: u'Bus Pane'
displayText: u''
IAccessibleObject: <POINTER(IAccessible) ptr=0x8f5ef40 at 4e54670>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=5898976, objectID=-4, childID=0
IAccessible accName: u'Bus Pane'
IAccessible accRole: ROLE_SYSTEM_CLIENT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: None

After renaming

INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (21:43:12):
Developer info for navigator object:
name: u'Metronome on Bus B'
role: ROLE_UNKNOWN
states: STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: 1
Python object: <NVDAObjects.UIA.UIA object at 0x04E43BB0>
Python class mro: (<class 'NVDAObjects.UIA.UIA'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: u'Metronome@2'
location: (298, 279, 94, 22)
value: u''
appModule: <'sonar' (appName u'sonarpdr', process ID 3244) at address 4e729f0>
appModule.productName: u'SONAR X3 Producer'
appModule.productVersion: u'X3e'
TextInfo: <class 'NVDAObjects.NVDAObjectTextInfo'>
windowHandle: 4522890
windowClassName: u'CTVStripBase'
windowControlID: 176043104
windowStyle: 1174405120
windowThreadID: 3496
windowText: u'Metronome'
displayText: u''
UIAElement: <POINTER(IUIAutomationElement) ptr=0x2e76cc8 at 4f5ba30>
UIA automationID: 12
UIA frameworkID:
UIA runtimeID: (42, 4522890, 2, 12)
UIA providerDescription: [pid:3244,hwnd:0x0 Main(parent link):Unidentified Provider (unmanaged:SONARPDR.exe)]
UIA className:



--
Mailing list: https://launchpad.net/~nvda-sonar-users
Post to     : nvda-sonar-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~nvda-sonar-users
More help : https://help.launchpad.net/ListHelp






References