Steve Wow,  amazing, I would not have thought WindowEyes would be getting in 
the way, but the following code works in vanilla VBS.

set r  = GetObject(, "Reflection2.Session")
 
set we = CreateObject("WindowEyes.Application")
with we.speech
                .speak( r.CursorColumn)
End With


But when run in WE 8.4 (without of course the connectEvent) it fails on the 
first line.

Jonathan



On Oct 7, 2014, at 8:23 AM, Steve Clower <sclo...@aisquared.com> wrote:

> Jonathan,
> 
> GetObject is a native VBScript function. I'm curious, can you get access to 
> the object from a stand-alone script, e.g. one which isn't hosted by 
> Window-Eyes?
> 
> Steve
> 
> 
> --
> Stephen Clower
> Window-Eyes Product Support and App Development
> Ai Squared
> 725 Airport North Office Park
> Fort Wayne, IN 46825
> (802) 362-3612
> www.aisquared.com<http://www.aisquared.com>
> Sent from my phone.
> 
> 
> On Oct 7, 2014, at 7:27 AM, "Jonathan C. Cohn" 
> <jon.c.c...@gmail.com<mailto:jon.c.c...@gmail.com>> wrote:
> 
> I am having issues reproducing a GetObject() command I am using in a JAWS 
> script to work in WindowEyes. In JAWS  GetObject(R”eflection.Session”). Note 
> that in JAWS this takes just one argument. After invoking this command I can 
> act directly with the scriptable objects of the current session. In VBS with 
> WindowEyes the GetObject requires two parameters, where the second parameter 
> appears to be equivalent to the parameter that JAWS uses.
> 
> If I use a null string for the first parameter then Reflection creates a new 
> hidden window. If I use the path of the Reflections settings file then I get 
> a new session to the host. If I leave the first parameter completely blank, I 
> get back an ActiveX error.  What am I missing here?
> 
> Thanks in advance for any hints.Best wishes,
> 
> Jonathan
> 
> 
> 
> 

Reply via email to