Re: Programing question.

Adriani Botez
 

Hello,

 

could you please write this to the nvda addons maillist? There are many developers who can help with answering this question.

 

You can subscribe to the addons list here:

https://nvda-addons.groups.io/g/nvda-addons

 

Thank you for your egagement in this community!

 

Best

Adriani

 

Von: nvda@nvda.groups.io <nvda@nvda.groups.io> Im Auftrag von majno
Gesendet: Dienstag, 12. Februar 2019 17:54
An: nvda@nvda.groups.io
Betreff: [nvda] Programing question.

 

Hello. I'm trying to start to program for NVDA. i'm new with codes for NVDA, but i know How to program using python. 
My question is:
I was testing how get spoken messages using the ui.message function, but the problem is when i try some code like this.

import ui

ui.message('hello, this is a basic test.')

Then i press intro key waiting for the message, but NVDA just try to speak and stop in less than one second leaving the message without finish.

But then i add a sleep(1) after and the message is finally read.

import ui
from time import sleep

ui.message('hello, this is a basic test.')
sleep(1)

Of Course, this is the bad way to do.
How can i get the message read without sleep NVDA?
I'm sure there is a way to, but i not familiar with NVDA parameters.E

Join nvda@nvda.groups.io to automatically receive all group messages.