Hi Chip,
    Note the switch for Reflection for VB and that may need setting when inside 
the
WE Script, that was my note. It was not concerning the GetObject first parm.
    I suggested it as a possible fix, not from the script end but the Reflection
end.
    GetRef would be when running reflection, thus having a pointer to it to 
keep only that session open.
    As you have mentioned, and Aaron as well, the object for reflection does not
exist until running, or created, thus the 2 formats already mentioned apply for 
each
case.
    When reading Reflection notes it brought up a possibility that it is not 
looking
at any registry settings and wants to be told if something has changed; not 
knowing
how Jaws changes the environment verses WE.
    Reflection could have been the cause from the beginning. But having the 
WScript
could result in the same conclusion/result as I have stated.
    I was just giving Jonathan something to experiment with, to see what 
Reflection
is doing and it's settings file are those command line switches, which is a part
of reflection, is to allow changing of Reflection default settings, and not for 
any
getObject command.
    For when reading Jonathan's original posting, the only issue was the opening
of a new session and not keeping the original session; new window opens up. 
Reflection
seems to have issues there. I guess if I were to install Reflection and deal 
with
R2Win issues, I could have experimented with it myself, but will just leave that
up to Jonathan.
    The GetRef could be used to create a session of Reflection and just 
transport
that pointer around as I had suggested. Then see what issues result from that.
        Bruce
Subject: RE: GetObject syntax / function
Bruce,
Sorry, but there is no "path" associated for registry objects related to which 
VBS
interpreter you use.  When you're using GetObject() and CreateObject(), you're 
executing
a program associated with a registry key, and the path to the program is 
specified
inside the registry.
GetRef() does not apply here, but only applies to a function or object which 
you've
defined inside your VBS program.
Chip

Sent: Tuesday, October 07, 2014 7:22 AM
Subject: GetObject syntax / function


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