Added C# and AutoHotkey examples for controller client DLL#7010
Added C# and AutoHotkey examples for controller client DLL#7010DojoMike wants to merge 2 commits into
Conversation
|
@DojoMike Thanks for the contribution. If you haven't done so already, please take a look at the developer guide and the contributor guide. |
There was a problem hiding this comment.
Great work! I picked up a few things but nothing major.
I understand that the other example files do not have copyright headers, but please add the following to your two new files, replacing <FILENAME.EXT> with the filename and <YOUR NAME> with your name.
#<FILENAME.EXT>
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2007-2017 NV Access Limited, <YOUR NAME>
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
Thanks!
| /// Tells NVDA to speak a string of text | ||
| /// </summary> | ||
| /// <param name="text">The text to speak</param> | ||
| /// <param name="interrupt">If true, NVDA will stop whatever it's saying at th emoment and immediately speak the string</param> |
There was a problem hiding this comment.
Minor: "th" needs an e to be "the"
| } | ||
|
|
||
| /// <summary> | ||
| /// Tells NVDA to braille a string of text (UNTESTED) |
There was a problem hiding this comment.
I assume this is labelled as untested because you do not have a braille display? To test braille output consider: https://github.com/nvaccess/nvda/wiki/Testing-braille-output-without-a-braille-display
There was a problem hiding this comment.
Thanks for this great link! I don't read Braille well enough to invest in a custom device, but this should help me put the examples through some additional testing.
There was a problem hiding this comment.
No problem, let me know when you are happy with this and we can incubate the changes (which is the process of merging your changes into the next branch for a period of 2 weeks to allow testing from a wider audience before merging to master)
There was a problem hiding this comment.
@DojoMike did you test this? If you are happy with it, please remove the (UNTESTED) comment and we can progress this issue. Thanks!
| /// Tells NVDA to braille a string of text (UNTESTED) | ||
| /// </summary> | ||
| /// <param name="text">The text to braille</param> | ||
| /// <param name="interrupt">If true, NVDA will stop whatever it's brailling at th emoment and immediately braille the string</param> |
There was a problem hiding this comment.
Minor: The "e" from "the" is on the "emoment"
|
The controller client is covered by the GNU LGPL (not the GPL) and I think
it makes sense for the examples to be covered under the LGPL as well, just
in case someone wants to use them (or parts of them) as-is. So, the
copyright lines should say:
#Copyright (C) 2017 NV Access Limited, <YOUR NAME>
#This file is covered by the GNU Lesser General Public License, version 2.1.
#See the file license.txt for more details.
|
|
Hey there, Sorry for the late response. I will be out of town this weekend, but will read the guides (thank for those btw) and make the requested changes as soon as possible. Thanks! |
| } | ||
|
|
||
| /// <summary> | ||
| /// Tells NVDA to braille a string of text (UNTESTED) |
There was a problem hiding this comment.
@DojoMike did you test this? If you are happy with it, please remove the (UNTESTED) comment and we can progress this issue. Thanks!
|
I'm about to embark on a project with school and I need the controller client from c# for this (it's for an a11y class actually and we're prototyping some pretty neat things, more info on that later). I'm happy to provide you with a test of the braille code if you want. |
|
@derekriemer Yes, please do test this! Things kinda went sideways with my workload and I almost forgot all about this. But fans of the DLL (like myself lol) should definitely have access to the examples. Thanks! PS: Just out of curiosity, where is the source code for the DLL itself? Someday when I've studied up on all the guides I still have to read, and have a better understanding of how it all works under the hood, I'd like to see if I can contribute to that too. :) |
|
@DojoMike In anticipation of derekriemer's testing, could you please remove the "untested" comment? As for the source code of the DLL, I believe this is implemented in python, within |
|
Okay, so... noobie question here... how I get my repo caught up with all the latest changes since I last worked on this? Sorry, this is suuuuper new territory for me, cuz I have a repo on my desktop that has a remote (here on github) which has another remote (NVDA) so it's a bit more convoluted than a simple "git pull", especially since github has a completely different UI from Git GUI (or even Git Bash). I've Googled around for a bit but mostly found unrelated forum posts. At this point the best strategy I can dream up is:
PS: DLLs in Python? How is that even possible? I've written DLLs in C, C++, and C#, and I know there's a ".pyd" file (conceptually similar to a DLL but not the same thing). Anyway thanks for hangin' in there with me. |
|
The code @feerrenrut is seeing is a callback in NVDAHelper.dll (or one of the helper dll's. I think it uses rpc under the hood, although I don't know where the controller source lives. |
|
For git, you need to do the following. Now in future, git push suffices. |
|
Any progress on this PR @DojoMike or do you need any assistance? |
|
@DojoMike do you have any update on this? |
|
@DojoMike: This is a last heads up to kindly ask you whether you're intending to finish your work on this. If not, I'm afraid we have to close this. Having said that, happy for anyone who wants to take this. |
|
cc: @abdel792, @DataTriny, @dglee42, @codeofdusk maybe anyone of you could be interested in taking this over? |
|
Hi @DojoMike, I join Reef in thanking you for this interesting contribution. I hope it will be added soon. Kind regards. |
|
Hello, I can definitely work on the C# part.
Le mar. 14 mai 2019 à 18:20, abdel792 <notifications@github.com> a écrit :
… Hi @DojoMike <https://github.com/DojoMike>,
I join Reef in thanking you for this interesting contribution.
I hope it will be added soon.
Kind regards.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7010?email_source=notifications&email_token=AC3JTEDXV5WLBQ7PUTKEDZLPVLRFVA5CNFSM4DE6IIW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVMANRA#issuecomment-492308164>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC3JTEHPNUZY3WWVQBZNSLLPVLRFVANCNFSM4DE6IIWQ>
.
|
|
Hello everyone, |
|
@feerrenrut you closed this one, as far as I understand there are also AutoHotkey examples for controller client to be added. It this not intended? PR #9600 adds the C# examples which is one part of this work. @DataTriny many thanks for your work. |
|
@Adriani90 That is true, but we seem to have lost contact with the author of this, and we don't have access to push to this branch (and thus rectify this PR). I can't see any point in keeping a PR open that we can not merge. Anyone who is willing to create a new PR for the autoHotKey examples is welcome to do so. |
|
You're welcome @Adriani90. |
Hey there,
First off, let me just say you guys are awesome!! I really appreciate your hard work to make NVDA as amazing as it is. Thank you very much!
Anyway, I'm new to contributing on GitHub, so please don't hesitate to correct me if I'm way out in left field someplace, but it's my understanding that pull requests are the way to go. This pull request provides 2 more examples of how to use the NVDA controller client DLL; the languages are C# ("c sharp") and AutoHotKey. The AutoHotKey example is similar to the other examples, and the C# is a complete wrapper class for the DLL (since C# uses classes for everything).