Skip to content

GetActiveObject fails when running with uiAccess #2483

@nvaccessAuto

Description

@nvaccessAuto

Reported by peter on 2012-06-22 13:18
Hi developers,
I am trying to write a support script for lambda math editor (http://www.veia.it)
The currently opened document in the editor can be accessed through com object and here is my problem (may be that this is a python bug, not nvda bug).
from comtypes.client import GetActiveObject
a=GetActiveObject("Lambda.LambdaObj")
and here the error:
Traceback (most recent call last):
File "", line 1, in
File "comtypes\client__init__.pyo", line 180, in GetActiveObject
File "comtypes__init__.pyo", line 1165, in GetActiveObject
File "_ctypes/callproc.c", line 936, in GetResult
WindowsError: -2147221021 Operation unavailable

I tryed this on nvda python console and it seems that the problem is somewhere in python, because everything perfectly works in other languages. i tryed this in autohotkey:
asdf := ComObjactivate("lambda.lambdaobj")
a:=asdf.getline(2425818,-1,-1)
msgbox %a%
and everything worked which means that comobj instance of running lambda is in the table and is accessible for other applications.
Do you have any idea?
Thank you!
Blocking #2568

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions