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:
Ron ParkerSubject:
Re: getObject()Date:
Tue, Feb 2, 2010 8:13:56 amJust try this in immediate mode:
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.
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.


