Hi Sean,
Yes those formats are correct and the get assumes Windoweyes is running
they only difference between the 2 formats except the get is using an existing
object and may cause problems in getting or setting properties and using
methods.
Here is the result of setting the object:
Set WeTts = createObject( "windoweyes.application")
vo = WeTts.ActiveSettings.Screen.Tone
rl = WeTts.ActiveSettings.Screen.Rate
pl = WeTts.ActiveSettings.Screen.Pitch
vl = WeTts.ActiveSettings.Screen.Volume
weVersion = WeTts.Version
WeTts.Speech.Speak (" The version of we is: %s" % weVersion)
Of course you can use any object model format in the object model section
related to the application.
Other stuff you must create the shell or scripting object if outside of the
screen reader platform.
Bruce
Sent: Saturday, December 07, 2013 6:43 PM
Subject: Re: using events from external applications
Hi Sean,
I just pulled this out of my notes:
'To instantiate the window-eyes object externally, that is, within a script
not running in the Window-Eyes App Manager,
'use either of these forms:
'set WO = GetObject("","windoweyes.application")
'or
'set WO = createObject("windoweyes.application")
I tend to favour the latter format, but this is personal. smile
hth,
Rod
On 12/07/13 6:12 PM, Sean Farrow wrote:
Hi all,
I'm currently writing a script for an application. If I write this as an
external script, I can hook events (such as OnChildClipRendered). Can I do
this if I write an external application that isn't a Window-Eyes script?
I really should know the answer, so apologise for asking daft questions!
Any help appreciated.
Regards
Sean.
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com