Jonathan
    I am wondering that it might be related to the path environment variables 
the reason why it was failing inside of WE?
    If you wanted to play with it and change the path to the Windows system32 
or 64 or what ever Windows 8 uses, see if that also fixes it...just a thought.
        Bruce


Sent: Tuesday, October 07, 2014 7:10 PM
Subject: Re: GetObject syntax / function


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
>
>
>
>


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com

Reply via email to