Bruce,
 
if you want to write VBScript scripts outside of window eyes, check out the
wscript object (assuming you're running them in windows scripting host).  it
provides you with methods such as connectEvent and createObject, and is
covered in the VBScript reference book I uploaded to the class channel.
 
hth,
 
Chip
 

  _____  

From: bT [mailto:b...@fltg.net] 
Sent: Tuesday, April 05, 2011 3:31 PM
To: gw-scripting@gwmicro.com
Subject: Re: GW: Did you test your MSAA Interface technicals with an
External Script?


 
Thanks, I kind of figured that was the case for I was just trying to do
something in Windoweyes without being inside of it and creating the
application using the createObject method from a .vbs script. 
 
    So, since the event, connectObject, can not be done using that approach,
can it be done using the MSI version?
 
    I have a different approach in learning things, but probably will get
entirely inside the WE environment instead of doing it the easy way. My
version.py script works as long as I only use application methods. but it
does make sense to have a different approach when monitoring events. so, I
learn by doing and what not to do.
 
    I figured that was what Rick was experiencing as well, the reason why I
had to ask.
 
        Bruce
 
Sent: Tuesday, April 05, 2011 9:29 AM
Subject: Re: GW: Did you test your MSAA Interface technicals with an
External Script?


On 4/5/2011 9:15 AM, bT wrote: 

    I did a set createObject on the script of windoweyes and it says it can
not create it, but can create the application object.  Why is this 
    I read something about that it must be internal only.
    Is this true? Or is ther a way to do it?


That is true. The Script object exposes methods and properties that are
expected to already exist in external scripting environments, or that are
impossible to do without access to certain internal state of the script
interpreter itself. Thus, there's no way to create one; the only way to get
one is to be given one when your internal script is launched. (ConnectObject
is one of the big examples of an impossible-to-do method - we can only do
ConnectObject because ActiveScript gives us access to an automation object
that contains all of your script's global methods.) 



 
I guess the question is how to create a ActiveScript hosted object?


ActiveScript is the name for a specific technology implemented by VBScript
and JScript, as well as some third-party scripting languages like
ActivePython. "ActiveScript hosted scripts" is a slightly more technical
(though still not entirely accurate) term for what we usually call
"internal" scripts.


Reply via email to