>   No application object because you can't pass in an object reference, only
> text
> arguments.  But you could use FindWindow to get a handle on a form and go
> from
> there in the script (untested, but I know the API is available for use).  

I'm looking for a richer model than the API.  When you use the MS scripting
control, you can pre-define and instantiate objects that will be available to
the script.  This is commonly done so the script has access to the calling
application.  To pass references into the scripting control, however, you need
a COM wrapper to whatever you're passing.

It would be nice if the Pascal engine allowed to you reference and pass in the
Application object so that it would available in the script as Application
(just like in Delphi).  In that case, you should have access to any Published
properties and methods in the application.

I don't know if that's possible -- but it sure would be nice!
--
Larry

Reply via email to