Re: Jaws Speech Detection

  • From: "Young Choi" <young.choi@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 24 Feb 2010 22:42:33 -0800

Long time ago, I wrote this script to restart jaws. It checks if Jaws is 
running either by service or regular process. It assumes Jaws is installed. I 
hope this helps.

Set objWMI=GetObject("winmgmts:")
Set oShell = WScript.CreateObject("")

'Check if Jaws is running
Set colProcesses=objWMI.ExecQuery("select * from win32_process where 
Set colServices=objWMI.ExecQuery("select * from win32_service where 

If colProcesses.count = 0 Then
oShell.Run "jaws8"
End if

If colServices.count > 0 Then
For Each objService In colServices
If objService.state = "Running" Then
WScript.Sleep(1000) "Jaws8"
'oShell.Run "net start JFWService"
End If
End If

If colProcesses.count > 0 Then
For Each objProcess In colProcesses
objProcess.Terminate() "Jaws8"
'oShell.Run "net start JFWService"
End If

----- Original Message ----- 
  From: Andrew Hauck 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Wednesday, February 24, 2010 10:16 AM
  Subject: Re: Jaws Speech Detection


  Bad news, after further testing I realized my COM call was missing a boolean 
parameter. Therefore the function returns were false because the function was 
not being found in registry, so I'm back to square one again with this 
problem.. I believe the JAWS Enable() function only determines whether JAWS is 
enabled or not...

Other related posts: