[jawsscripts] Can't access a COM object from Notepad

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 17 Mar 2011 09:00:55 +0200

Hi,
I have created a JAWS script in default.jss which creates a COM object and 
executes a method of that object.

If I use the hotkey that executes that script from another application than 
Notepad, the script works fine, but from Notepad it doesn't execute the method 
of that COM object.

Do you have any idea why is Notepad so special?

Here below is that script.

If it is executed from Notepad, only the string "OK" is spoken, but if it is 
executed from another application, it also speaks the result of the method of 
that COM object.

Script Testing ()
 Var Object obj, String trans

 Let obj = CreateObject("Maestro.Translate")
 Let trans = obj.Translate("work", "en", "ro", 1, 0)
 SayString(trans)
 SayString("ok")
EndScript

Thanks.

--Octavian

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: