Hi Guys,
Aaron had mentioned what I had posted from Microsoft. In which you go down
to the explanation and such the things which both Chip and Aaron mentioned are
there.
The path to the System folders may be the reason for failure only thinking
that the other place for VB is there and it could be the reason for failure and
just mentioned that changing the path only in the getobject call just might
fixed the issue, but was only a thought.
I keep forgetting to go back to Chip's classes and searching since I do
have copies...
I just wanted to get all the Microsoft docs on it and the Stack Over-flow
solutions, which came up with more links and such, which I posted.
Take care and happy programming.
I am still doing roofing... A life time project maybe; the nice thing about
owning a house and almost done.
Bruce
Sent: Thursday, October 09, 2014 7:28 AM
Subject: Re: GetObject syntax / function
Chip,
Thanks for the advice in a later post I showed code that I ran directly with
the vbs system doing a GetObject of Reflection2.Session and CreateObject of
WindowEyes.Application. This code worked and WindowEyes spoke the current X
coordinate of the cursor. I then commented out the CreateObject and ran the
same script in the WindowEyes script host and the GetObject on the first line
failed to execute.
Bruce suggested I look at environment variables but I thought Object Name
translation was done via registry and I don’ know the specific place to look.
The binary is called “r2win.exe’
Best wishes,
Jonathan
On Oct 9, 2014, at 7:03 AM, Chip Orange <[email protected]> wrote:
BTW, class # 16 (when I did a quick search), seems to include a discussion
of getObject().
Hth,
Chip
From: Chip Orange [mailto:[email protected]]
Sent: Thursday, October 09, 2014 6:52 AM
To: [email protected]
Subject: RE: GetObject syntax / function
Hi Jonathan,
There’s a trick to use of GetObject(); it does have two parameters, but the
first parameter should not be a null string, but should be omitted entirely if
what you want is to obtain a pointer to any currently running copy of this
application object (see my Word Advanced Features app, which does this, rather
than start up a second copy of Word). For instance:
Set WordApp = getObject(, “word.application”)
Then, if it ends up returning nothing, you can then use CreateObject() to
start the application.
As Steve says, this is standard VBScript, so you can search the internet
for all information on it.
Hth,
Chip
From: Jonathan C. Cohn [mailto:[email protected]]
Sent: Tuesday, October 07, 2014 7:22 AM
To: [email protected]
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