Note: groups.io will be down for maintenance on Wednesday, October 5th, starting at 9AM Pacific Time (4PM Wednesday October 5, 2022 UTC), for approximately one hour.
Re: Python pring function with flush=True NVDA not reading the updated messages in Windows PowerShell
I tried running your code and it has errors. Can you try your code and make sure it works before you send it? Note things like the range function in the for loop and the sec variable is what I am talking bout.toggle quoted messageShow quoted text
From: firstname.lastname@example.org <email@example.com> On Behalf Of William
Sent: Saturday, May 14, 2022 5:04 AM
Subject: [nvda] Python pring function with flush=True NVDA not reading the updated messages in Windows PowerShell
This question is partly related to NVDA and partly related to Windows PowerShell.
Supposed I have the following python script and stored in a python file
'test.py', which print out a new string of text after every second.
for i in np.arange(10):
0)).removesuffix('.0')}%", end="\r", flush=True)
1. I open Windows PowerShell
2. type python test.py
3. the script starts running
I am expecting that NVDA can automatically speak out the new string of
text, but in my test, after the first 'Spleeping...' was spoken, NVDA
did not speak the updated messages.
What can I do to make NVDA speak the updated messages? Thanks.