Re: issue with python and nvda addons

2020-11-08 Thread AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector


  


Re: issue with python and nvda addons

also it is prudent to check the API you are using. thankfully for NVDA it is pretty easy. just bring up an NVDA dev prompt (NVDA + ctrl + z) and then type:import speechhelp(speech.speakMessage)which will bring up the docstring for the function in a commandline reader like more on windows or less in bash.looking there it documents pretty clearly that it can also take an additional argument for with what priority the message should be spoken.

URL: https://forum.audiogames.net/post/587712/#p587712




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-06 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: issue with python and nvda addons

why on earth would you need to use threading any ways, if i beleive you could just speak what is on the clipboard? such a difficult way of implementing things when there are basic ways to do things.

URL: https://forum.audiogames.net/post/587076/#p587076




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector


  


Re: issue with python and nvda addons

I have a feeling I know what you might be doing that is causing this from what you said so far.so you are calling core.callLater(), because you want your thing to be executed later. and you say you are just calling speech.speakMessage(). are you by any chance doing something like this:core.callLater(speech.speakMessage("this is my message"))because then the stack trace you are getting makes perfect sense. without even checking the api of nvda, I can tell core.callLater() expects to receive a function that it will, well... call later. but if you are doing what I wrote above, then you are passing None instead, which can't be called because it isn't a function.what is happening in that line that I wrote is that first speech.speakMessage() is called, which performs the side effect of speaking and then returns None, wich is passed to core.callLater(). what you want to do instead is to define a function and pass that instead. likedef myFunc():  speech.speakLater("bla bla")core.callLater(myFunc)but if by chance this is what you have done and why it is failing, then you really should invest more into learning python and fundamentals of programming in general. it would also explain why you are massively convoluting your solution here.

URL: https://forum.audiogames.net/post/586908/#p586908




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: issue with python and nvda addons

If that's your goal, it's probably not possible. I'd have to check NVDA.  But it's also a great way to permanently freeze NVDA up and possibly require a hard reboot of the machine.Go to settings, keyboard, and uncheck the speech interrupt for... boxes and you can mostly get what you want without coding.  If you only want it in a specific app, start by setting up a configuration profile.

URL: https://forum.audiogames.net/post/586895/#p586895




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : Turret via Audiogames-reflector


  


Re: issue with python and nvda addons

Um... It... Shouldn't anyways... I really don't know what you're doing but it scares me.

URL: https://forum.audiogames.net/post/586878/#p586878




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : mazen via Audiogames-reflector


  


Re: issue with python and nvda addons

I know, i’m making a clipboard checker and i’m trying to make it speak from the main thread so nvda doesn’t interrupt itself when i hold keys and release them

URL: https://forum.audiogames.net/post/586869/#p586869




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : mazen via Audiogames-reflector


  


Re: issue with python and nvda addons

I know, i’m making a clipboard checker and i’m trying to make it speak from the main thread so nvda doesn’t interrupt itself

URL: https://forum.audiogames.net/post/586869/#p586869




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : Turret via Audiogames-reflector


  


Re: issue with python and nvda addons

speech.speak has absolutely nothing to do with threading...

URL: https://forum.audiogames.net/post/586859/#p586859




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : mazen via Audiogames-reflector


  


Re: issue with python and nvda addons

I’m just calling speech.speakMessage, i don’t understand why its happening

URL: https://forum.audiogames.net/post/586841/#p586841




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector


  


Re: issue with python and nvda addons

Here goes the same as with any other question: only showing the error log won't help you at all, we'd at least need the code that is causing it to see what's wrong.

URL: https://forum.audiogames.net/post/586803/#p586803




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : mazen via Audiogames-reflector


  


Re: issue with python and nvda addons

So should i make a function that returns another function?

URL: https://forum.audiogames.net/post/586784/#p586784




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : Turret via Audiogames-reflector


  


Re: issue with python and nvda addons

I have never messed with multi threading in NVDA, but whatever you're passing appears to be of NoneType.  If you really can't get it, this really isn't the best stop. There's an email list for this kind of stuff.

URL: https://forum.audiogames.net/post/586782/#p586782




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


issue with python and nvda addons

2020-11-05 Thread AudioGames . net Forum — Developers room : mazen via Audiogames-reflector


  


issue with python and nvda addons

helloi'm trying to call a function from a thread so it gets executed in the main thread but i have an issue.whenever i do core.callLater or use the queueHandler, it works but the nvda log is filled with this errors.ERROR - core.CorePump.run (13:42:46.876) - MainThread (6108):errors in this core pump cycleTraceback (most recent call last):  File "queueHandler.pyc", line 55, in flushQueueTypeError: 'NoneType' object is not callableDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "core.pyc", line 520, in run  File "queueHandler.pyc", line 88, in pumpAll  File "queueHandler.pyc", line 57, in flushQueueAttributeError: 'NoneType' object has no attribute '__qualname__'i'm not sure why it happens, even though the the api docs of nvda say that core.callLater can be safely called from other threads so, not sure whats wrong.thanks.

URL: https://forum.audiogames.net/post/586741/#p586741




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector