[program-l] Re: Program to switch between screen readers

  • From: <reynoldsdavid46@xxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Tue, 3 Nov 2020 21:37:26 -0000

It's not for me, but for someone who is very old, but needs to access two 
screen readers. The idea is that he has a hotkey to run the script,

David.

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On Behalf 
Of Soronel Haetir
Sent: 03 November 2020 20:45
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: Program to switch between screen readers

Is this really a common enough operation to create a specific script for? Seems 
easy enough to just exit the current screen reader and then have a key 
combination assigned to shortcuts for the target screen readers. (I would 
probably go with ctrl+alt+j and ctrl+alt+n but that's just me)

On 11/3/20, reynoldsdavid46@xxxxxxxxx <reynoldsdavid46@xxxxxxxxx> wrote:

Florian,

You've confirmed my idea of going down the psutil route,

Many thanks,

David.

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> 
On Behalf Of Florian Beijers
Sent: 03 November 2020 17:17
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: Program to switch between screen readers

You'd have to find a way to check the currently running processes for 
a given process and it's a simple if statement from there.
nvda = "Nvda.exe" in (p.name() for p in psutil.process_iter()) if nvda:
    kill nvda
    run jaws
else
    kill JAWS
run NVDA

To kill either application you can run the shell command:
taskkill /f //im nvda.exe

I'm sure Python has some way of initiating what would essentially be a 
command from the windows+r run dialog.

FLorian

2020-11-03 17:50 GMT+01:00, reynoldsdavid46@xxxxxxxxx
<reynoldsdavid46@xxxxxxxxx>:
Hi,



The subject says it all, and I thought rather than re-invent the 
wheel, I'd put it out there.

In short, if jfw is running, I want to close it down, and start nvda, 
and vice versa.

I reckon it should be possible in Python, but if there's a better 
way, I'd be glad toknow,



Many thanks for any thoughts,



David.


** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq



--
Soronel Haetir
soronel.haetir@xxxxxxxxx
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: