Quantcast

method chooseNVDAObjectOverlayClasses is not called for ap module

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

method chooseNVDAObjectOverlayClasses is not called for ap module

Heiko Folkerts-4
Hi all,
in an app module I have the following code:
        def chooseNVDAObjectOverlayClasses(self, obj, clsList):
                tones.beep(400,200)
                ui.message("foreground window text is %s" % (api.getForegroundObject().windowText))
                if api.getForegroundObject().windowText.startswith("Table Properties"):
                        tones.beep(500,100)
                        clsList.insert(0,"TablePropertiesDialog")

The file name for the app module is right - NVDA has picked it up for the application under test. But the method doesn't seem to be called - no tone is heared. I restart NVDA and switch to the already open application but nothing happens. Why is the method not called? I have NVDAs logging level set to debug, but in the log is no clue that something whent wrong when compiling the script etc.

Ofcourse the code is missing the class I am using in the over method - I left it out to keep things simple in this mail.

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

_______________________________________________________



------------------------------------------------------------------------------
_______________________________________________
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: method chooseNVDAObjectOverlayClasses is not called for ap module

derek riemer

Make sure your indents are correct.


On 12/5/2016 6:23 AM, Heiko Folkerts wrote:
Hi all,
in an app module I have the following code:
	def chooseNVDAObjectOverlayClasses(self, obj, clsList):
		tones.beep(400,200)
		ui.message("foreground window text is %s" % (api.getForegroundObject().windowText))
		if api.getForegroundObject().windowText.startswith("Table Properties"):
			tones.beep(500,100)
			clsList.insert(0,"TablePropertiesDialog")

The file name for the app module is right - NVDA has picked it up for the application under test. But the method doesn't seem to be called - no tone is heared. I restart NVDA and switch to the already open application but nothing happens. Why is the method not called? I have NVDAs logging level set to debug, but in the log is no clue that something whent wrong when compiling the script etc.

Ofcourse the code is missing the class I am using in the over method - I left it out to keep things simple in this mail.

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

_______________________________________________________



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


------------------------------------------------------------------------------

_______________________________________________
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: method chooseNVDAObjectOverlayClasses is not called for ap module

Heiko Folkerts-4
In reply to this post by Heiko Folkerts-4
Hi,
forget the request. It was because of an import error from the module that is reported in the log but much earlier. So now the event is called as expected.


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: Heiko Folkerts [mailto:[hidden email]]
Gesendet: Montag, 5. Dezember 2016 14:23
An: [hidden email]
Betreff: [Nvda-devel] method chooseNVDAObjectOverlayClasses is not called for ap module

Hi all,
in an app module I have the following code:
        def chooseNVDAObjectOverlayClasses(self, obj, clsList):
                tones.beep(400,200)
                ui.message("foreground window text is %s" % (api.getForegroundObject().windowText))
                if api.getForegroundObject().windowText.startswith("Table Properties"):
                        tones.beep(500,100)
                        clsList.insert(0,"TablePropertiesDialog")

The file name for the app module is right - NVDA has picked it up for the application under test. But the method doesn't seem to be called - no tone is heared. I restart NVDA and switch to the already open application but nothing happens. Why is the method not called? I have NVDAs logging level set to debug, but in the log is no clue that something whent wrong when compiling the script etc.

Ofcourse the code is missing the class I am using in the over method - I left it out to keep things simple in this mail.

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

_______________________________________________________



------------------------------------------------------------------------------
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: method chooseNVDAObjectOverlayClasses is not called for ap module

derek riemer

I recommend testing with master or next for this reason (You don't hear error tones on stable).


On 12/5/2016 6:53 AM, Heiko Folkerts wrote:
Hi,
forget the request. It was because of an import error from the module that is reported in the log but much earlier. So now the event is called as expected.


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

_______________________________________________________


-----Ursprüngliche Nachricht-----
Von: Heiko Folkerts [[hidden email]] 
Gesendet: Montag, 5. Dezember 2016 14:23
An: [hidden email]
Betreff: [Nvda-devel] method chooseNVDAObjectOverlayClasses is not called for ap module

Hi all,
in an app module I have the following code:
	def chooseNVDAObjectOverlayClasses(self, obj, clsList):
		tones.beep(400,200)
		ui.message("foreground window text is %s" % (api.getForegroundObject().windowText))
		if api.getForegroundObject().windowText.startswith("Table Properties"):
			tones.beep(500,100)
			clsList.insert(0,"TablePropertiesDialog")

The file name for the app module is right - NVDA has picked it up for the application under test. But the method doesn't seem to be called - no tone is heared. I restart NVDA and switch to the already open application but nothing happens. Why is the method not called? I have NVDAs logging level set to debug, but in the log is no clue that something whent wrong when compiling the script etc.

Ofcourse the code is missing the class I am using in the over method - I left it out to keep things simple in this mail.

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

_______________________________________________________



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

--

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


------------------------------------------------------------------------------

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