Question on making an app module to complement existing app module

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

Question on making an app module to complement existing app module

Daniel Gartmann

 

Hi,

 

While we await the various examples that could guide scripters of other screen readers to the relevant functions in NVDA, I would like to ask how to make a custom app module for e.g. Outlook? There is already an extensive module for that but I would like to have a go at creating a command to read the field with the recipient or recipients of the current message, a function JAWS provides using Alt plus one of the number keys.

 

But can I just make an app module for Outlook and assume that it will also use the built-in app module for Outlook as well? Would I need to import the app module for Outlook in my custom app module?

 

Thanks in advance.

 

Daniel

 


------------------------------------------------------------------------------
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: Question on making an app module to complement existing app module

Travis Roth

Hi,

Jamie once answered this question. I’m pasting his note below. Hope it helps.

 

“You use normal object oriented programming techniques; e.g. subclassing and overriding. For example:

 

from nvdaBuiltin.appModules import skype

 

class AppModule(skype.AppModule):

 

               def script_foo(self, gesture):

                              # Some script code here...

 

               def event_NVDAObject_init(self, obj):

                              super(AppModule, self).event_NVDAObject_init(obj)

                              # Some extra object tweaking here...

 

 

 

From: Daniel Gartmann [mailto:[hidden email]]
Sent: Wednesday, June 7, 2017 3:43 PM
To: 'NVDA screen reader development' <[hidden email]>
Subject: [Nvda-devel] Question on making an app module to complement existing app module

 

 

Hi,

 

While we await the various examples that could guide scripters of other screen readers to the relevant functions in NVDA, I would like to ask how to make a custom app module for e.g. Outlook? There is already an extensive module for that but I would like to have a go at creating a command to read the field with the recipient or recipients of the current message, a function JAWS provides using Alt plus one of the number keys.

 

But can I just make an app module for Outlook and assume that it will also use the built-in app module for Outlook as well? Would I need to import the app module for Outlook in my custom app module?

 

Thanks in advance.

 

Daniel

 


------------------------------------------------------------------------------
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: Question on making an app module to complement existing app module

derek riemer
In reply to this post by Daniel Gartmann
This is done with the NVDABuiltin module. Here's its documentation.
"""Provides access to built-in NVDA modules where they have been overridden by third party modules.
This should only be used by overriding modules to extend the built-in module.
For example, if an add-on overrides the skype app module but wants to access the built-in module,
it can do this by importing nvdaBuiltin.appModules.skype.
"""


On Wed, Jun 7, 2017 at 2:42 PM, Daniel Gartmann <[hidden email]> wrote:

 

Hi,

 

While we await the various examples that could guide scripters of other screen readers to the relevant functions in NVDA, I would like to ask how to make a custom app module for e.g. Outlook? There is already an extensive module for that but I would like to have a go at creating a command to read the field with the recipient or recipients of the current message, a function JAWS provides using Alt plus one of the number keys.

 

But can I just make an app module for Outlook and assume that it will also use the built-in app module for Outlook as well? Would I need to import the app module for Outlook in my custom app module?

 

Thanks in advance.

 

Daniel

 


------------------------------------------------------------------------------
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: Improving the world one byte at a time!

  • University of Colorado Boulder Department of computer science, 4th year undergraduate student.
  • Accessibility enthusiast.
  • Proud user of the NVDA screen reader.
  • Open source enthusiast.
  • Skier.

Personal website



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