Scripting: trouble

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Scripting: trouble

Casalino
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:(214)%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:(214)%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino
In reply to this post by James Teh

The strange thing is that if I run nvda as administrator, I get no error, but the plug-in does not work properly as espected.

Gianluca


Il 30/01/2017 12:57, James Teh ha scritto:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a moz-do-not-send="true" href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino
In reply to this post by James Teh

mmmm. what's the subject?

Apps running as admin at all or nvda running as admin at all?

Gianluca



Il 30/01/2017 12:58, James Teh ha scritto:
Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a moz-do-not-send="true" href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
When NVDA is not running as admin, only installed official builds of NVDA can access the UI of other apps running as admin. This may not (probably doesn't) include GetActiveObject, though. So, I wanted to know how you were running NVDA.

On Mon, Jan 30, 2017 at 11:04 PM, Casalino <[hidden email]> wrote:

mmmm. what's the subject?

Apps running as admin at all or nvda running as admin at all?

Gianluca



Il 30/01/2017 12:58, James Teh ha scritto:
Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino
In reply to this post by James Teh

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a moz-do-not-send="true" href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
A snapshot is fine. In this case, when I say official, I mean a build provided by NV Access, rather than a build made by someone else. Note that it also must be installed; portable is not sufficient.

On Mon, Jan 30, 2017 at 11:10 PM, Casalino <[hidden email]> wrote:

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino

mmmm.

I tried with a completely stable official version and it fixes the issue.

I am trying with my snapshot next-13848,30151 and it does not fix it.

I have to investigate more.

Thanks


Gianluca


Il 30/01/2017 14:35, James Teh ha scritto:
A snapshot is fine. In this case, when I say official, I mean a build provided by NV Access, rather than a build made by someone else. Note that it also must be installed; portable is not sufficient.

On Mon, Jan 30, 2017 at 11:10 PM, Casalino <[hidden email]> wrote:

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a moz-do-not-send="true" href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
In reply to this post by James Teh
One thing I just thought of: you can try adding the appModule argument to the comHelper.getActiveObject call. Pass it the appModule of the process the object is in (e.g. self.appModule if self is in the same process, which I imagine it is). That's something we added more recently which might help here.



On Mon, Jan 30, 2017 at 11:35 PM, James Teh <[hidden email]> wrote:
A snapshot is fine. In this case, when I say official, I mean a build provided by NV Access, rather than a build made by someone else. Note that it also must be installed; portable is not sufficient.

On Mon, Jan 30, 2017 at 11:10 PM, Casalino <[hidden email]> wrote:

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

Casalino

ValueError: appModule does not have a binding handle


Here how I changed the line:

    try:
                Bme2ComObj=comHelper.getActiveObject("bme2.Jaws.Object",dynamic=True,appModule = self.appModule)
            except (COMError,WindowsError) as e:
                Bme2ComObj=None
            self._Bme2ComObj=Bme2ComObj
        return self._Bme2ComObj



Il 30/01/2017 14:45, James Teh ha scritto:
One thing I just thought of: you can try adding the appModule argument to the comHelper.getActiveObject call. Pass it the appModule of the process the object is in (e.g. self.appModule if self is in the same process, which I imagine it is). That's something we added more recently which might help here.



On Mon, Jan 30, 2017 at 11:35 PM, James Teh <[hidden email]> wrote:
A snapshot is fine. In this case, when I say official, I mean a build provided by NV Access, rather than a build made by someone else. Note that it also must be installed; portable is not sufficient.

On Mon, Jan 30, 2017 at 11:10 PM, Casalino <[hidden email]> wrote:

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a moz-do-not-send="true" href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: Scripting: trouble

James Teh
That suggests NVDA's in-process components could not be injected into the application at all. You didn't answer my question about whether you're running an installed or portable copy. You cannot access admin apps with a portable copy, source copy or custom build.

On Tue, Jan 31, 2017 at 12:08 AM, Casalino <[hidden email]> wrote:

ValueError: appModule does not have a binding handle


Here how I changed the line:

    try:
                Bme2ComObj=comHelper.getActiveObject("bme2.Jaws.Object",dynamic=True,appModule = self.appModule)
            except (COMError,WindowsError) as e:
                Bme2ComObj=None
            self._Bme2ComObj=Bme2ComObj
        return self._Bme2ComObj



Il 30/01/2017 14:45, James Teh ha scritto:
One thing I just thought of: you can try adding the appModule argument to the comHelper.getActiveObject call. Pass it the appModule of the process the object is in (e.g. self.appModule if self is in the same process, which I imagine it is). That's something we added more recently which might help here.



On Mon, Jan 30, 2017 at 11:35 PM, James Teh <[hidden email]> wrote:
A snapshot is fine. In this case, when I say official, I mean a build provided by NV Access, rather than a build made by someone else. Note that it also must be installed; portable is not sufficient.

On Mon, Jan 30, 2017 at 11:10 PM, Casalino <[hidden email]> wrote:

oh yes I use a snapshot version.

I will try with an official version to understand if running app and nvda as admin all works fine.

I agree with you about security issues and I want to convince authors of bme2 toplace all in order.

Thanks you again


Gianluca

Il 30/01/2017 12:58, James Teh ha scritto:

Also, are you using an installed official build of NVDA or a portable/temporary/custom build? Only installed official builds can access apps running as admin at all.

On Mon, Jan 30, 2017 at 9:57 PM, James Teh <[hidden email]> wrote:
Are you running JAWS as administrator? Running NVDA as administrator might work around it, though I absolutely don't recommend this for security reasons and the risk is entirely yours if you choose to do this.

On Mon, Jan 30, 2017 at 9:50 PM, Casalino <[hidden email]> wrote:

yes but jaws does the same and it works fine.

There is a workaround in the maintime? I have to run bme2 in that way as some funcions requires this.

Thanks


Gianluca
Il 30/01/2017 12:36, James Teh ha scritto:
I suspect you won't be able to access COM objects via GetActiveObject for apps running as admin. It seems that normal apps, uiAccess apps and admin apps all get a different view of the COM running object table. It's worth noting that running the app as admin isn't ideal anyway due to security issues.


On Mon, Jan 30, 2017 at 8:08 PM, Casalino <[hidden email]> wrote:
Hi,

I have developed in the past a script to have bme2 to work with nvda.

Bme2 (braille music editor) is a special software that let users to
write braille music using the braille music notation  by recheiving
vocal and braille feedback.

In windows 10 I am envountering problems by executing bme2 as administrator.

The plug-in stops to work and in the log file I find this:

appModule: <'bme2' (appName u'bme2', process ID 580) at address 57d1e70>
appModule.productName: u'bme2'
appModule.productVersion: u'2.4.38'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1050034
windowClassName: u'Edit'
windowControlID: 157
windowStyle: 1378947268
windowThreadID: 1424
windowText: u'\u2828\u2808'
displayText: u'\u2828\u2808'
IAccessibleObject: <POINTER(IAccessible) ptr=0xbf601d8 at 5767120>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1050034, objectID=-4, childID=0
IAccessible accName: None
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE,
STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: u'\u2828\u2808'
ERROR - RPC process 7280 (nvda_slave.exe) (11:00:11):
__main__.main:
slave error
Traceback (most recent call last):
   File "nvda_slave.pyw", line 90, in main
   File "comHelper.pyc", line 22, in _lresultFromGetActiveObject
   File "comtypes\client\__init__.pyc", line 180, in GetActiveObject
   File "comtypes\__init__.pyc", line 1165, in GetActiveObject
   File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -<a href="tel:%28214%29%20722-1021" value="+12147221021" target="_blank">2147221021] Operazione non disponibile
ERROR - scriptHandler.executeScript (11:00:11):
error executing script: <bound method
Dynamic_myclassIAccessibleEditWindowNVDAObject.script_caret_moveByCharacter
of <NVDAObjects.Dynamic_myclassIAccessibleEditWindowNVDAObject object at
0x056E99F0>> with gesture u'Freccia destra'
Traceback (most recent call last):
   File "scriptHandler.pyc", line 187, in executeScript
   File "editableText.pyc", line 147, in script_caret_moveByCharacter
   File "editableText.pyc", line 103, in _caretMovementScriptHelper
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 50, in _caretScriptPostMovedHelper
   File "baseObject.pyc", line 34, in __get__
   File "baseObject.pyc", line 110, in _getPropertyViaCache
   File
"C:\Users\Casalino.BIC\AppData\Roaming\nvda\addons\bme2NVDASupport\appModules\bme2.py",
line 24, in _get_Bme2ComObj
   File "comHelper.pyc", line 58, in getActiveObject
RuntimeError: Helper process unable to get object; see log for details

what could be?

To obtain the desired result I have to use com objects and comunicate
with bme2.

THanks in advance for help

Gianluca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nvda-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/nvda-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel