The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 Chip Orange

Subject:

 RE: getObject()

Date:

 Tue, Feb 2, 2010 7:31:20 pm
thanks; I'll fall back to trying nativeObjectModel then.

Chip


-----Original Message-----
From: Ron Parker [mailto:ron@gwmicro.com]
Sent: Tuesday, February 02, 2010 8:14 AM
To: gw-scripting@gwmicro.com
Subject: Re: getObject()

Just try this in immediate mode:
when Word is not running: set W=getObject(, "word.application")

and you'll get an error, and Word will not start.

Now, start Word and try it. no error, and you can make Word be
visible to you by: w.visible = true

proving you're connected.



Just a note, though: if you're using Vista or Windows 7 with UAC disabled,
it won't work due to a bug in Window-Eyes - it'll fail even when Word is
already running. That'll be fixed in an upcoming version, but it's worth
knowing if you plan to use GetObject.