thanks; I'll fall back to trying nativeObjectModel then.

Chip
 

-----Original Message-----
From: Ron Parker [mailto:r...@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.

Reply via email to