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

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 17 Mar 2011 02:25:34 -0500

What are the 1 and 0 parameters for in your method call?  Also, do you
know if the COM object or your method call attempt to determine
anything about the current application, its windows or MSAA or other
interfaces, or the screen itself?

On Thu, Mar 17, 2011 at 09:00:55AM +0200, Octavian Rasnita wrote:
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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

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

Other related posts: