Quantcast

How to get NVDA object from windowhandle

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to get NVDA object from windowhandle

Heiko Folkerts-4
Hi all,
AFAIK the only way to get a NVDA object from a windowhandle obtained via windowUtils.findDescendantWindow seems to be getNVDAObjectFromEvent. Are there other ways to get an Object from a windowhandle or more specifically get a NVDA object for a control ID? getNVDAObjectFromEvent is throwing strange errors in my case and I suspect that the window I am searching for isn't an IAccessible object.

Searching the NvDA source hasn't brought me any clue about this.

Heiko


Mit freundlichen Grüßen

Dipl. Inf. (FH)
Heiko Folkerts
Systementwicklung und -Design

--
_______________________________________________________

msg DAVID GmbH · Wendenring 1 · 38114 Braunschweig

Tel.: +49 531 24379-14
Fax.: +49 531 24379-79

E-Mail: mailto:[hidden email]
WWW:    https://www.msg-david.de

Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok, Andreas Lehmann

_______________________________________________________



------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

Re: How to get NVDA object from windowhandle

derek riemer

Give that handle to NVDAObjects.window.Window it has a keyword arg of windowHandle


On 12/2/2016 12:49 AM, Heiko Folkerts wrote:
Hi all,
AFAIK the only way to get a NVDA object from a windowhandle obtained via windowUtils.findDescendantWindow seems to be getNVDAObjectFromEvent. Are there other ways to get an Object from a windowhandle or more specifically get a NVDA object for a control ID? getNVDAObjectFromEvent is throwing strange errors in my case and I suspect that the window I am searching for isn't an IAccessible object.

Searching the NvDA source hasn't brought me any clue about this.

Heiko


Mit freundlichen Grüßen

Dipl. Inf. (FH)
Heiko Folkerts
Systementwicklung und -Design

--
_______________________________________________________

msg DAVID GmbH · Wendenring 1 · 38114 Braunschweig

Tel.: +49 531 24379-14
Fax.: +49 531 24379-79

E-Mail: [hidden email]
WWW:    https://www.msg-david.de

Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok, Andreas Lehmann

_______________________________________________________



------------------------------------------------------------------------------
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

--

Derek Riemer

  • Department of computer science, third year undergraduate student.
  • Proud user of the NVDA screen reader.
  • Open source enthusiast.
  • Member of Bridge Cu
  • Avid skiier.

Websites:
Honors portfolio
Awesome little hand built weather app!

[hidden email]
Phone: (303) 906-2194


------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

Re: How to get NVDA object from windowhandle

Heiko Folkerts-4
Yep, that works., Thanks.


Mit freundlichen Grüßen

Dipl. Inf. (FH)
Heiko Folkerts
Systementwicklung und -Design

--
_______________________________________________________

msg DAVID GmbH · Wendenring 1 · 38114 Braunschweig

Tel.: +49 531 24379-14
Fax.: +49 531 24379-79

E-Mail: mailto:[hidden email]
WWW:    https://www.msg-david.de

Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok, Andreas Lehmann

_______________________________________________________


-----Ursprüngliche Nachricht-----
Von: derek riemer [mailto:[hidden email]]
Gesendet: Freitag, 2. Dezember 2016 09:03
An: NVDA screen reader development
Betreff: Re: [Nvda-devel] How to get NVDA object from windowhandle

Give that handle to NVDAObjects.window.Window it has a keyword arg of windowHandle



On 12/2/2016 12:49 AM, Heiko Folkerts wrote:


        Hi all,
        AFAIK the only way to get a NVDA object from a windowhandle obtained via windowUtils.findDescendantWindow seems to be getNVDAObjectFromEvent. Are there other ways to get an Object from a windowhandle or more specifically get a NVDA object for a control ID? getNVDAObjectFromEvent is throwing strange errors in my case and I suspect that the window I am searching for isn't an IAccessible object.
       
        Searching the NvDA source hasn't brought me any clue about this.
       
        Heiko
       
       
        Mit freundlichen Grüßen
       
        Dipl. Inf. (FH)
        Heiko Folkerts
        Systementwicklung und -Design
       
        --
        _______________________________________________________
       
        msg DAVID GmbH · Wendenring 1 · 38114 Braunschweig
       
        Tel.: +49 531 24379-14
        Fax.: +49 531 24379-79
       
        E-Mail: mailto:[hidden email]
        WWW:    https://www.msg-david.de
       
        Eintragung: Amtsgericht Braunschweig, HRB 3167
        Geschäftsführer: Frank Ptok, Andreas Lehmann
       
        _______________________________________________________
       
       
       
        ------------------------------------------------------------------------------
        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


--

________________________________


Derek Riemer


* Department of computer science, third year undergraduate student.
* Proud user of the NVDA screen reader.
* Open source enthusiast.
* Member of Bridge Cu
* Avid skiier.

Websites:
Honors portfolio <http://derekriemer.com>  
Awesome little hand built weather app! <http://django.derekriemer.com/weather/>  


email me at [hidden email] <mailto:[hidden email]>  
Phone: (303) 906-2194


------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

Re: How to get NVDA object from windowhandle

derek riemer
However, some objects have one handle for a whole tree I.E. firefox, be careful because you might not get what You expected I think.


------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

Re: How to get NVDA object from windowhandle

Heiko Folkerts-4
Hi Derek,
thanks for the hint. In my case the constructor helped me, but the powerdesigner has multiple conttrols with the same control ID assigned. Seems that I have to code the tab order using the names of the controls and or the control IDs, where there is no name assigned.
Unfortunately the window hierarchy is not as expected - one window seems to hold a big list of children from a whole tree of windows shown on the screen.

So I will have to code my own version of windowUtils.findDescendantWindow to search for name or control ID.

Or is there already some clever routine I can use for this task?

Heiko


Mit freundlichen Grüßen

Dipl. Inf. (FH)
Heiko Folkerts
Systementwicklung und -Design

--
_______________________________________________________

msg DAVID GmbH · Wendenring 1 · 38114 Braunschweig

Tel.: +49 531 24379-14
Fax.: +49 531 24379-79

E-Mail: mailto:[hidden email]
WWW:    https://www.msg-david.de

Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok, Andreas Lehmann

_______________________________________________________


-----Ursprüngliche Nachricht-----
Von: derek riemer [mailto:[hidden email]]
Gesendet: Freitag, 2. Dezember 2016 19:30
An: NVDA screen reader development
Betreff: Re: [Nvda-devel] How to get NVDA object from windowhandle

However, some objects have one handle for a whole tree I.E. firefox, be careful because you might not get what You expected I think.


------------------------------------------------------------------------------
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

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