NVDA and the Online bible software.


Jim Noseworthy
 

Hi Gang:

 

I have asked Chat GBT to create an add-on for the Online bible.

 

Can anyone on this list who creates NVDA add-ons verify whether or not the data which I received from Chat GBT makes any sense?

 

The information is as follows.

 

create an NVDA addon for the Online Bible

 

As an AI language model, I can provide you with the steps to create an NVDA addon for the Online Bible:

  1. First, download and install the NVDA software on your computer. You can get it from the NVDA website at https://www.nvaccess.org/.
  2. Next, download the Online Bible software and install it on your computer. You can get it from the Online Bible website at https://www.onlinebible.net/.
  3. Once you have both NVDA and the Online Bible installed, you can start creating the addon. Open the NVDA development toolkit by pressing "Windows Key + R" and typing "nvda-dev.exe" in the "Run" box.
  4. Click on "Add-on template" from the list of available templates, then click "Next."
  5. In the "Add-on name" field, type "OnlineBible" and then click "Next."
  6. In the "Author name" field, enter your name, and in the "Author email" field, enter your email address. Then click "Next."
  7. In the next screen, select "Python 3" as the scripting language, and then click "Next."
  8. The toolkit will now create a new folder called "OnlineBible" in your NVDA add-ons directory. This is where you will create your addon.
  9. Open the folder and create a new file called "addon.py" using a text editor like Notepad.
  10. In the addon.py file, import the NVDA addon API by adding the following line of code at the top of the file:

import addonHandler

  1. Next, create a new function called "getAddonObject" that returns an instance of your addon class. This is the main entry point of your addon, and it will be called when the addon is loaded. Here is an example code:
rubyCopy code
class OnlineBibleAddonClass(addonHandler.AddonHandler): def __init__(self): addonHandler.AddonHandler.__init__(self, "OnlineBible") def get_help(self): return _("Adds support for the Online Bible software.") def getAddonObject(): return OnlineBibleAddonClass() 
  1. Save the addon.py file and close the text editor.
  2. Next, create a new folder in the OnlineBible folder called "globalPlugins" (if it does not exist already).
  3. Create a new file called "init.py" in the globalPlugins folder using a text editor.
  4. In the "init.py" file, import the addon module by adding the following line of code at the top of the file:

import addon

  1. Next, create a new function called "globalPluginHandler" that returns an instance of your addon class. This function will be called by NVDA when the addon is loaded. Here is an example code:
rubyCopy code
class GlobalPluginClass(addon.Addon): def __init__(self, *args, **kwargs): super(GlobalPluginClass, self).__init__(*args, **kwargs) def event_NVDAStarted(self): self.script = api.getScript(self.scriptPath) self.script.load() api.setScript(self.script) log.info("OnlineBible addon loaded") def event_NVDAObjectFocus(self, obj, nextHandler): # Implement your code here to handle the Online Bible software focus events pass def globalPluginHandler(nvdaController): return GlobalPluginClass(nvdaController) 
  1. Save the "init.py" file and close the text editor.
  2. Finally, open the Online Bible software and test your addon. If everything is working correctly, you

 


Gene
 

We'll see what people with technical knowledge about add-ons say, but it sounds to me as though the bot told you how to make an add-on that runs, but does nothing else. 

While I don't know the limitations of the bot, I doubt it can create an add-on or give you code that will cause an add-on to take actions under whatever conditions you want it to do something. 

I think this would require technical knowledge the bot either doesn't have or might not know how to apply such as how to deal with objects and other technical matters. 

Gene

On 4/1/2023 7:29 AM, Jim Noseworthy wrote:

Hi Gang:

 

I have asked Chat GBT to create an add-on for the Online bible.

 

Can anyone on this list who creates NVDA add-ons verify whether or not the data which I received from Chat GBT makes any sense?

 

The information is as follows.

 

create an NVDA addon for the Online Bible

 

As an AI language model, I can provide you with the steps to create an NVDA addon for the Online Bible:

  1. First, download and install the NVDA software on your computer. You can get it from the NVDA website at https://www.nvaccess.org/.
  2. Next, download the Online Bible software and install it on your computer. You can get it from the Online Bible website at https://www.onlinebible.net/.
  3. Once you have both NVDA and the Online Bible installed, you can start creating the addon. Open the NVDA development toolkit by pressing "Windows Key + R" and typing "nvda-dev.exe" in the "Run" box.
  4. Click on "Add-on template" from the list of available templates, then click "Next."
  5. In the "Add-on name" field, type "OnlineBible" and then click "Next."
  6. In the "Author name" field, enter your name, and in the "Author email" field, enter your email address. Then click "Next."
  7. In the next screen, select "Python 3" as the scripting language, and then click "Next."
  8. The toolkit will now create a new folder called "OnlineBible" in your NVDA add-ons directory. This is where you will create your addon.
  9. Open the folder and create a new file called "addon.py" using a text editor like Notepad.
  10. In the addon.py file, import the NVDA addon API by adding the following line of code at the top of the file:

import addonHandler

  1. Next, create a new function called "getAddonObject" that returns an instance of your addon class. This is the main entry point of your addon, and it will be called when the addon is loaded. Here is an example code:
rubyCopy code
class OnlineBibleAddonClass(addonHandler.AddonHandler): def __init__(self): addonHandler.AddonHandler.__init__(self, "OnlineBible") def get_help(self): return _("Adds support for the Online Bible software.") def getAddonObject(): return OnlineBibleAddonClass() 
  1. Save the addon.py file and close the text editor.
  2. Next, create a new folder in the OnlineBible folder called "globalPlugins" (if it does not exist already).
  3. Create a new file called "init.py" in the globalPlugins folder using a text editor.
  4. In the "init.py" file, import the addon module by adding the following line of code at the top of the file:

import addon

  1. Next, create a new function called "globalPluginHandler" that returns an instance of your addon class. This function will be called by NVDA when the addon is loaded. Here is an example code:
rubyCopy code
class GlobalPluginClass(addon.Addon): def __init__(self, *args, **kwargs): super(GlobalPluginClass, self).__init__(*args, **kwargs) def event_NVDAStarted(self): self.script = api.getScript(self.scriptPath) self.script.load() api.setScript(self.script) log.info("OnlineBible addon loaded") def event_NVDAObjectFocus(self, obj, nextHandler): # Implement your code here to handle the Online Bible software focus events pass def globalPluginHandler(nvdaController): return GlobalPluginClass(nvdaController) 
  1. Save the "init.py" file and close the text editor.
  2. Finally, open the Online Bible software and test your addon. If everything is working correctly, you

 



Brian's Mail list account
 

Yes it does indeed say that, ie put your code here so to speak. Until somebody defines why the online bible fails to work and tells it how to use nvdas built in routines to intercept the information needed, you still have to create your own code. I suppose its interesting for those wanting to do the preliminaries of setting up an add on and initialising it.
However if like me this is still stretching knowledge, you are hardly likely to be able to write what one might call the guts of the add on without a lot of hand holding.
Brian

--
bglists@...
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
briang1@..., putting 'Brian Gaff'
in the display name field.

----- Original Message -----
From: "Gene" <gsasner@...>
To: <nvda@nvda.groups.io>
Sent: Saturday, April 01, 2023 1:51 PM
Subject: Re: [nvda] NVDA and the Online bible software.


We'll see what people with technical knowledge about add-ons say, but it
sounds to me as though the bot told you how to make an add-on that runs,
but does nothing else.

While I don't know the limitations of the bot, I doubt it can create an
add-on or give you code that will cause an add-on to take actions under
whatever conditions you want it to do something.

I think this would require technical knowledge the bot either doesn't
have or might not know how to apply such as how to deal with objects and
other technical matters.

Gene

On 4/1/2023 7:29 AM, Jim Noseworthy wrote:

Hi Gang:

I have asked Chat GBT to create an add-on for the Online bible.

Can anyone on this list who creates NVDA add-ons verify whether or not
the data which I received from Chat GBT makes any sense?

The information is as follows.

jim.noseworthy@...

create an NVDA addon for the Online Bible

As an AI language model, I can provide you with the steps to create an
NVDA addon for the Online Bible:

1. First, download and install the NVDA software on your computer.
You can get it from the NVDA website at https://www.nvaccess.org/
<https://www.nvaccess.org/>.
2. Next, download the Online Bible software and install it on your
computer. You can get it from the Online Bible website at
https://www.onlinebible.net/ <https://www.onlinebible.net/>.
3. Once you have both NVDA and the Online Bible installed, you can
start creating the addon. Open the NVDA development toolkit by
pressing "Windows Key + R" and typing "nvda-dev.exe" in the "Run" box.
4. Click on "Add-on template" from the list of available templates,
then click "Next."
5. In the "Add-on name" field, type "OnlineBible" and then click "Next."
6. In the "Author name" field, enter your name, and in the "Author
email" field, enter your email address. Then click "Next."
7. In the next screen, select "Python 3" as the scripting language,
and then click "Next."
8. The toolkit will now create a new folder called "OnlineBible" in
your NVDA add-ons directory. This is where you will create your addon.
9. Open the folder and create a new file called "addon.py" using a
text editor like Notepad.
10. In the addon.py file, import the NVDA addon API by adding the
following line of code at the top of the file:

|*import addonHandler*|

11. Next, create a new function called "getAddonObject" that returns
an instance of your addon class. This is the main entry point of
your addon, and it will be called when the addon is loaded. Here
is an example code:

rubyCopy code
class||OnlineBibleAddonClass|(addonHandler.|AddonHandler|): |def||__init__|(|self|): addonHandler.|AddonHandler|.__init__(|self|, |"OnlineBible"|) |def||get_help|(|self|): |return|_(|"Adds support for the Online Bible software."|) |def||getAddonObject|(): |return||OnlineBibleAddonClass|() |

12. Save the addon.py file and close the text editor.
13. Next, create a new folder in the OnlineBible folder called
"globalPlugins" (if it does not exist already).
14. Create a new file called "*init*.py" in the globalPlugins folder
using a text editor.
15. In the "*init*.py" file, import the addon module by adding the
following line of code at the top of the file:

|*import addon*|

16. Next, create a new function called "globalPluginHandler" that
returns an instance of your addon class. This function will be
called by NVDA when the addon is loaded. Here is an example code:

rubyCopy code
class||GlobalPluginClass|(addon.|Addon|): |def||__init__|(|self, *args, **kwargs|): |super|(|GlobalPluginClass|, |self|).__init__(*args, **kwargs) |def||event_NVDAStarted|(|self|): |self|.script = api.getScript(|self|.scriptPath) |self|.script.load() api.setScript(|self|.script) log.info(|"OnlineBible addon loaded"|) |def||event_NVDAObjectFocus|(|self, obj, nextHandler|): |# Implement your code here to handle the Online Bible software focus
events|pass |def||globalPluginHandler|(|nvdaController|): |return||GlobalPluginClass|(nvdaController) |

17. Save the "*init*.py" file and close the text editor.
18. Finally, open the Online Bible software and test your addon. If
everything is working correctly, you


Kefas
 

From my knowledge, there is no such thing as addon-dev.exe. I stand to be corrected though.

I didn’t carefully read the remaining code, because I’m sure it won’t run properly.

From the organization of the code to how it explains things to you, I’m sure things won’t work well.

 

If you want to create an nvda-addon for a software, you must first off know what exactly you want the addon to do.

What is that accessibility issues you want to fix?

You didn’t tell this to chatGPT. Maybe modify your prompt a little bit.

But remember, chatGPT doesn’t know much about nvda’s internals, at list GPT3.5 series. Let’s see if nvda code will be among the billions of lines of open source code on GitHub that is used to train GPT4 series.

 

Sent from kefaslungu

 

From: Jim Noseworthy
Sent: 01 April 2023 13:29
To: nvda@nvda.groups.io
Subject: [nvda] NVDA and the Online bible software.

 

Hi Gang:

 

I have asked Chat GBT to create an add-on for the Online bible.

 

Can anyone on this list who creates NVDA add-ons verify whether or not the data which I received from Chat GBT makes any sense?

 

The information is as follows.

 

create an NVDA addon for the Online Bible

 

As an AI language model, I can provide you with the steps to create an NVDA addon for the Online Bible:

1.       First, download and install the NVDA software on your computer. You can get it from the NVDA website at https://www.nvaccess.org/.

2.       Next, download the Online Bible software and install it on your computer. You can get it from the Online Bible website at https://www.onlinebible.net/.

3.       Once you have both NVDA and the Online Bible installed, you can start creating the addon. Open the NVDA development toolkit by pressing "Windows Key + R" and typing "nvda-dev.exe" in the "Run" box.

4.       Click on "Add-on template" from the list of available templates, then click "Next."

5.       In the "Add-on name" field, type "OnlineBible" and then click "Next."

6.       In the "Author name" field, enter your name, and in the "Author email" field, enter your email address. Then click "Next."

7.       In the next screen, select "Python 3" as the scripting language, and then click "Next."

8.       The toolkit will now create a new folder called "OnlineBible" in your NVDA add-ons directory. This is where you will create your addon.

9.       Open the folder and create a new file called "addon.py" using a text editor like Notepad.

10.   In the addon.py file, import the NVDA addon API by adding the following line of code at the top of the file:

import addonHandler

1.       Next, create a new function called "getAddonObject" that returns an instance of your addon class. This is the main entry point of your addon, and it will be called when the addon is loaded. Here is an example code:

rubyCopy code
class OnlineBibleAddonClass(addonHandler.AddonHandler): def __init__(self): addonHandler.AddonHandler.__init__(self, "OnlineBible") def get_help(self): return _("Adds support for the Online Bible software.") def getAddonObject(): return OnlineBibleAddonClass() 

1.       Save the addon.py file and close the text editor.

2.       Next, create a new folder in the OnlineBible folder called "globalPlugins" (if it does not exist already).

3.       Create a new file called "init.py" in the globalPlugins folder using a text editor.

4.       In the "init.py" file, import the addon module by adding the following line of code at the top of the file:

import addon

5.       Next, create a new function called "globalPluginHandler" that returns an instance of your addon class. This function will be called by NVDA when the addon is loaded. Here is an example code:

rubyCopy code
class GlobalPluginClass(addon.Addon): def __init__(self, *args, **kwargs): super(GlobalPluginClass, self).__init__(*args, **kwargs) def event_NVDAStarted(self): self.script = api.getScript(self.scriptPath) self.script.load() api.setScript(self.script) log.info("OnlineBible addon loaded") def event_NVDAObjectFocus(self, obj, nextHandler): # Implement your code here to handle the Online Bible software focus events pass def globalPluginHandler(nvdaController): return GlobalPluginClass(nvdaController) 

6.       Save the "init.py" file and close the text editor.

7.       Finally, open the Online Bible software and test your addon. If everything is working correctly, you